mirror of https://github.com/lukechilds/node.git
Browse Source
To add a LICENSE file along with the v8_inspector code, we need to pick up v8_inspector from an intermediate repository: https://github.com/pavelfeldman/v8_inspector. This repo still tracks upstream code in Blink. This roll also picks up the latest v8_inspector from upstream fixing a few issues. * Pickup commit id bc60957 from pavelfeldman/v8_inspector * Update node.gyp to adapt to the new file paths * Update the DevTools hash for the devtools frontend. Fixes: https://github.com/nodejs/node/issues/7123 Fixes: https://github.com/nodejs/node/issues/7736 Fixes: https://github.com/nodejs/node/issues/7734 PR-URL: https://github.com/nodejs/node/pull/7796 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>v7.x
255 changed files with 2581 additions and 2049 deletions
@ -1 +0,0 @@ |
|||
platform/v8_inspector/build/rjsmin.pyc |
@ -1,10 +1,10 @@ |
|||
V8 Inspector support for Node.js |
|||
================================ |
|||
|
|||
This directory is a gathering of dependencies for Node.js support for the |
|||
[Chrome Debug Protocol][https://developer.chrome.com/devtools/docs/debugger-protocol]. |
|||
This repository is an intermediate repository that gathers the dependencies for |
|||
Node.js support for the [Chrome Debug Protocol][https://developer.chrome.com/devtools/docs/debugger-protocol]. |
|||
|
|||
* platform/v8_inspector: vendored from https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/platform/v8_inspector |
|||
* platform/inspector_protocol: vendored from https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/platform/inspector_protocol |
|||
* deps/jinja2: vendored from https://github.com/mitsuhiko/jinja2 |
|||
* deps/markupsafe: vendored from https://github.com/mitsuhiko/markupsafe |
|||
* third_party/v8_inspector/platform/v8_inspector: vendored from https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/platform/v8_inspector |
|||
* third_party/v8_inspector/platform/inspector_protocol: vendored from https://chromium.googlesource.com/chromium/src/third_party/WebKit/Source/platform/inspector_protocol |
|||
* third_party/jinja2: vendored from https://github.com/mitsuhiko/jinja2 |
|||
* third_party/markupsafe: vendored from https://github.com/mitsuhiko/markupsafe |
|||
|
@ -1,23 +0,0 @@ |
|||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
#ifndef Collections_h |
|||
#define Collections_h |
|||
|
|||
#if V8_INSPECTOR_USE_STL |
|||
#include "platform/inspector_protocol/CollectionsSTL.h" |
|||
#else |
|||
#include "platform/inspector_protocol/CollectionsWTF.h" |
|||
#endif // V8_INSPECTOR_USE_STL
|
|||
|
|||
|
|||
// Macro that returns a compile time constant with the length of an array, but gives an error if passed a non-array.
|
|||
template<typename T, size_t Size> char (&ArrayLengthHelperFunction(T (&)[Size]))[Size]; |
|||
// GCC needs some help to deduce a 0 length array.
|
|||
#if defined(__GNUC__) |
|||
template<typename T> char (&ArrayLengthHelperFunction(T (&)[0]))[0]; |
|||
#endif |
|||
#define PROTOCOL_ARRAY_LENGTH(array) sizeof(::ArrayLengthHelperFunction(array)) |
|||
|
|||
#endif // !defined(Collections_h)
|
@ -1,244 +0,0 @@ |
|||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
#ifndef CollectionsSTL_h |
|||
#define CollectionsSTL_h |
|||
|
|||
#include "platform/inspector_protocol/Platform.h" |
|||
#include "platform/inspector_protocol/String16.h" |
|||
|
|||
#include <algorithm> |
|||
#include <map> |
|||
#include <vector> |
|||
|
|||
namespace blink { |
|||
namespace protocol { |
|||
|
|||
template <typename T> |
|||
class Vector { |
|||
public: |
|||
Vector() { } |
|||
Vector(size_t capacity) : m_impl(capacity) { } |
|||
typedef typename std::vector<T>::iterator iterator; |
|||
typedef typename std::vector<T>::const_iterator const_iterator; |
|||
|
|||
iterator begin() { return m_impl.begin(); } |
|||
iterator end() { return m_impl.end(); } |
|||
const_iterator begin() const { return m_impl.begin(); } |
|||
const_iterator end() const { return m_impl.end(); } |
|||
|
|||
void resize(size_t s) { m_impl.resize(s); } |
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return !m_impl.size(); } |
|||
T& operator[](size_t i) { return at(i); } |
|||
const T& operator[](size_t i) const { return at(i); } |
|||
T& at(size_t i) { return m_impl[i]; } |
|||
const T& at(size_t i) const { return m_impl.at(i); } |
|||
T& last() { return m_impl[m_impl.size() - 1]; } |
|||
const T& last() const { return m_impl[m_impl.size() - 1]; } |
|||
void append(const T& t) { m_impl.push_back(t); } |
|||
void prepend(const T& t) { m_impl.insert(m_impl.begin(), t); } |
|||
void remove(size_t i) { m_impl.erase(m_impl.begin() + i); } |
|||
void clear() { m_impl.clear(); } |
|||
void swap(Vector& other) { m_impl.swap(other.m_impl); } |
|||
void removeLast() { m_impl.pop_back(); } |
|||
|
|||
private: |
|||
std::vector<T> m_impl; |
|||
}; |
|||
|
|||
template <typename T> |
|||
class Vector<std::unique_ptr<T>> { |
|||
public: |
|||
Vector() { } |
|||
Vector(size_t capacity) : m_impl(capacity) { } |
|||
Vector(Vector&& other) { m_impl.swap(other.m_impl); } |
|||
~Vector() { clear(); } |
|||
|
|||
typedef typename std::vector<T*>::iterator iterator; |
|||
typedef typename std::vector<T*>::const_iterator const_iterator; |
|||
|
|||
iterator begin() { return m_impl.begin(); } |
|||
iterator end() { return m_impl.end(); } |
|||
const_iterator begin() const { return m_impl.begin(); } |
|||
const_iterator end() const { return m_impl.end(); } |
|||
|
|||
void resize(size_t s) { m_impl.resize(s); } |
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return !m_impl.size(); } |
|||
T* operator[](size_t i) { return at(i); } |
|||
const T* operator[](size_t i) const { return at(i); } |
|||
T* at(size_t i) { return m_impl[i]; } |
|||
const T* at(size_t i) const { return m_impl.at(i); } |
|||
T* last() { return m_impl[m_impl.size() - 1]; } |
|||
const T* last() const { return m_impl[m_impl.size() - 1]; } |
|||
void append(std::unique_ptr<T> t) { m_impl.push_back(t.release()); } |
|||
void prepend(std::unique_ptr<T> t) { m_impl.insert(m_impl.begin(), t.release()); } |
|||
|
|||
void remove(size_t i) |
|||
{ |
|||
delete m_impl[i]; |
|||
m_impl.erase(m_impl.begin() + i); |
|||
} |
|||
|
|||
void clear() |
|||
{ |
|||
for (auto t : m_impl) |
|||
delete t; |
|||
m_impl.clear(); |
|||
} |
|||
|
|||
void swap(Vector& other) { m_impl.swap(other.m_impl); } |
|||
void swap(Vector&& other) { m_impl.swap(other.m_impl); } |
|||
void removeLast() |
|||
{ |
|||
delete last(); |
|||
m_impl.pop_back(); |
|||
} |
|||
|
|||
private: |
|||
Vector(const Vector&) = delete; |
|||
Vector& operator=(const Vector&) = delete; |
|||
std::vector<T*> m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V, typename I> |
|||
class HashMapIterator { |
|||
public: |
|||
HashMapIterator(const I& impl) : m_impl(impl) { } |
|||
std::pair<K, V*>* get() const { m_pair.first = m_impl->first; m_pair.second = &m_impl->second; return &m_pair; } |
|||
std::pair<K, V*>& operator*() const { return *get(); } |
|||
std::pair<K, V*>* operator->() const { return get(); } |
|||
|
|||
bool operator==(const HashMapIterator<K, V, I>& other) const { return m_impl == other.m_impl; } |
|||
bool operator!=(const HashMapIterator<K, V, I>& other) const { return m_impl != other.m_impl; } |
|||
|
|||
HashMapIterator<K, V, I>& operator++() { ++m_impl; return *this; } |
|||
|
|||
private: |
|||
mutable std::pair<K, V*> m_pair; |
|||
I m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V, typename I> |
|||
class HashMapIterator<K, std::unique_ptr<V>, I> { |
|||
public: |
|||
HashMapIterator(const I& impl) : m_impl(impl) { } |
|||
std::pair<K, V*>* get() const { m_pair.first = m_impl->first; m_pair.second = m_impl->second; return &m_pair; } |
|||
std::pair<K, V*>& operator*() const { return *get(); } |
|||
std::pair<K, V*>* operator->() const { return get(); } |
|||
|
|||
bool operator==(const HashMapIterator<K, std::unique_ptr<V>, I>& other) const { return m_impl == other.m_impl; } |
|||
bool operator!=(const HashMapIterator<K, std::unique_ptr<V>, I>& other) const { return m_impl != other.m_impl; } |
|||
|
|||
HashMapIterator<K, std::unique_ptr<V>, I>& operator++() { ++m_impl; return *this; } |
|||
|
|||
private: |
|||
mutable std::pair<K, V*> m_pair; |
|||
I m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V> |
|||
class HashMap { |
|||
public: |
|||
HashMap() { } |
|||
~HashMap() { } |
|||
|
|||
using iterator = HashMapIterator<K, V, typename std::map<K, V>::iterator>; |
|||
using const_iterator = HashMapIterator<K, const V, typename std::map<K, V>::const_iterator>; |
|||
|
|||
iterator begin() { return iterator(m_impl.begin()); } |
|||
iterator end() { return iterator(m_impl.end()); } |
|||
iterator find(const K& k) { return iterator(m_impl.find(k)); } |
|||
const_iterator begin() const { return const_iterator(m_impl.begin()); } |
|||
const_iterator end() const { return const_iterator(m_impl.end()); } |
|||
const_iterator find(const K& k) const { return const_iterator(m_impl.find(k)); } |
|||
|
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return !m_impl.size(); } |
|||
bool set(const K& k, const V& v) |
|||
{ |
|||
bool isNew = m_impl.find(k) == m_impl.end(); |
|||
m_impl[k] = v; |
|||
return isNew; |
|||
} |
|||
bool contains(const K& k) const { return m_impl.find(k) != m_impl.end(); } |
|||
V get(const K& k) const { auto it = m_impl.find(k); return it == m_impl.end() ? V() : it->second; } |
|||
void remove(const K& k) { m_impl.erase(k); } |
|||
void clear() { m_impl.clear(); } |
|||
V take(const K& k) |
|||
{ |
|||
V result = m_impl[k]; |
|||
m_impl.erase(k); |
|||
return result; |
|||
} |
|||
|
|||
private: |
|||
std::map<K, V> m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V> |
|||
class HashMap<K, std::unique_ptr<V>> { |
|||
public: |
|||
HashMap() { } |
|||
~HashMap() { clear(); } |
|||
|
|||
using iterator = HashMapIterator<K, std::unique_ptr<V>, typename std::map<K, V*>::iterator>; |
|||
using const_iterator = HashMapIterator<K, std::unique_ptr<V>, typename std::map<K, V*>::const_iterator>; |
|||
|
|||
iterator begin() { return iterator(m_impl.begin()); } |
|||
iterator end() { return iterator(m_impl.end()); } |
|||
iterator find(const K& k) { return iterator(m_impl.find(k)); } |
|||
const_iterator begin() const { return const_iterator(m_impl.begin()); } |
|||
const_iterator end() const { return const_iterator(m_impl.end()); } |
|||
const_iterator find(const K& k) const { return const_iterator(m_impl.find(k)); } |
|||
|
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return !m_impl.size(); } |
|||
bool set(const K& k, std::unique_ptr<V> v) |
|||
{ |
|||
bool isNew = m_impl.find(k) == m_impl.end(); |
|||
if (!isNew) |
|||
delete m_impl[k]; |
|||
m_impl[k] = v.release(); |
|||
return isNew; |
|||
} |
|||
bool contains(const K& k) const { return m_impl.find(k) != m_impl.end(); } |
|||
V* get(const K& k) const { auto it = m_impl.find(k); return it == m_impl.end() ? nullptr : it->second; } |
|||
std::unique_ptr<V> take(const K& k) |
|||
{ |
|||
if (!contains(k)) |
|||
return nullptr; |
|||
std::unique_ptr<V> result(m_impl[k]); |
|||
delete m_impl[k]; |
|||
m_impl.erase(k); |
|||
return result; |
|||
} |
|||
void remove(const K& k) |
|||
{ |
|||
delete m_impl[k]; |
|||
m_impl.erase(k); |
|||
} |
|||
|
|||
void clear() |
|||
{ |
|||
for (auto pair : m_impl) |
|||
delete pair.second; |
|||
m_impl.clear(); |
|||
} |
|||
|
|||
private: |
|||
std::map<K, V*> m_impl; |
|||
}; |
|||
|
|||
template <typename K> |
|||
class HashSet : public protocol::HashMap<K, K> { |
|||
public: |
|||
void add(const K& k) { this->set(k, k); } |
|||
}; |
|||
|
|||
} // namespace platform
|
|||
} // namespace blink
|
|||
|
|||
#endif // !defined(CollectionsSTL_h)
|
@ -1,193 +0,0 @@ |
|||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
#ifndef CollectionsWTF_h |
|||
#define CollectionsWTF_h |
|||
|
|||
#include "wtf/Allocator.h" |
|||
#include "wtf/HashMap.h" |
|||
#include "wtf/PtrUtil.h" |
|||
#include "wtf/Vector.h" |
|||
#include "wtf/VectorTraits.h" |
|||
|
|||
namespace blink { |
|||
namespace protocol { |
|||
|
|||
template <typename T> |
|||
class Vector { |
|||
public: |
|||
Vector() { } |
|||
Vector(size_t capacity) : m_impl(capacity) { } |
|||
typedef T* iterator; |
|||
typedef const T* const_iterator; |
|||
|
|||
iterator begin() { return m_impl.begin(); } |
|||
iterator end() { return m_impl.end(); } |
|||
const_iterator begin() const { return m_impl.begin(); } |
|||
const_iterator end() const { return m_impl.end(); } |
|||
|
|||
void resize(size_t s) { m_impl.resize(s); } |
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return m_impl.isEmpty(); } |
|||
T& operator[](size_t i) { return at(i); } |
|||
const T& operator[](size_t i) const { return at(i); } |
|||
T& at(size_t i) { return m_impl.at(i); } |
|||
const T& at(size_t i) const { return m_impl.at(i); } |
|||
T& last() { return m_impl.last(); } |
|||
const T& last() const { return m_impl.last(); } |
|||
void append(const T& t) { m_impl.append(t); } |
|||
void prepend(const T& t) { m_impl.prepend(t); } |
|||
void remove(size_t i) { m_impl.remove(i); } |
|||
void clear() { m_impl.clear(); } |
|||
void swap(Vector<T>& other) { m_impl.swap(other.m_impl); } |
|||
void removeLast() { m_impl.removeLast(); } |
|||
|
|||
private: |
|||
WTF::Vector<T> m_impl; |
|||
}; |
|||
|
|||
template <typename T> |
|||
class Vector<std::unique_ptr<T>> { |
|||
WTF_MAKE_NONCOPYABLE(Vector); |
|||
public: |
|||
Vector() { } |
|||
Vector(size_t capacity) : m_impl(capacity) { } |
|||
Vector(Vector<std::unique_ptr<T>>&& other) : m_impl(std::move(other.m_impl)) { } |
|||
~Vector() { } |
|||
|
|||
typedef std::unique_ptr<T>* iterator; |
|||
typedef const std::unique_ptr<T>* const_iterator; |
|||
|
|||
iterator begin() { return m_impl.begin(); } |
|||
iterator end() { return m_impl.end(); } |
|||
const_iterator begin() const { return m_impl.begin(); } |
|||
const_iterator end() const { return m_impl.end(); } |
|||
|
|||
void resize(size_t s) { m_impl.resize(s); } |
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return m_impl.isEmpty(); } |
|||
T* operator[](size_t i) { return m_impl.at(i).get(); } |
|||
const T* operator[](size_t i) const { return m_impl.at(i).get(); } |
|||
T* at(size_t i) { return m_impl.at(i).get(); } |
|||
const T* at(size_t i) const { return m_impl.at(i).get(); } |
|||
T* last() { return m_impl.last().get(); } |
|||
const T* last() const { return m_impl.last(); } |
|||
void append(std::unique_ptr<T> t) { m_impl.append(std::move(t)); } |
|||
void prepend(std::unique_ptr<T> t) { m_impl.prepend(std::move(t)); } |
|||
void remove(size_t i) { m_impl.remove(i); } |
|||
void clear() { m_impl.clear(); } |
|||
void swap(Vector<std::unique_ptr<T>>& other) { m_impl.swap(other.m_impl); } |
|||
void swap(Vector<std::unique_ptr<T>>&& other) { m_impl.swap(other.m_impl); } |
|||
void removeLast() { m_impl.removeLast(); } |
|||
|
|||
private: |
|||
WTF::Vector<std::unique_ptr<T>> m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V, typename I> |
|||
class HashMapIterator { |
|||
STACK_ALLOCATED(); |
|||
public: |
|||
HashMapIterator(const I& impl) : m_impl(impl) { } |
|||
std::pair<K, V*>* get() const { m_pair = std::make_pair(m_impl->key, &m_impl->value); return &m_pair; } |
|||
std::pair<K, V*>& operator*() const { return *get(); } |
|||
std::pair<K, V*>* operator->() const { return get(); } |
|||
|
|||
bool operator==(const HashMapIterator<K, V, I>& other) const { return m_impl == other.m_impl; } |
|||
bool operator!=(const HashMapIterator<K, V, I>& other) const { return m_impl != other.m_impl; } |
|||
|
|||
HashMapIterator<K, V, I>& operator++() { ++m_impl; return *this; } |
|||
|
|||
private: |
|||
mutable std::pair<K, V*> m_pair; |
|||
I m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V, typename I> |
|||
class HashMapIterator<K, std::unique_ptr<V>, I> { |
|||
STACK_ALLOCATED(); |
|||
public: |
|||
HashMapIterator(const I& impl) : m_impl(impl) { } |
|||
std::pair<K, V*>* get() const { m_pair = std::make_pair(m_impl->key, m_impl->value.get()); return &m_pair; } |
|||
std::pair<K, V*>& operator*() const { return *get(); } |
|||
std::pair<K, V*>* operator->() const { return get(); } |
|||
|
|||
bool operator==(const HashMapIterator<K, std::unique_ptr<V>, I>& other) const { return m_impl == other.m_impl; } |
|||
bool operator!=(const HashMapIterator<K, std::unique_ptr<V>, I>& other) const { return m_impl != other.m_impl; } |
|||
|
|||
HashMapIterator<K, std::unique_ptr<V>, I>& operator++() { ++m_impl; return *this; } |
|||
|
|||
private: |
|||
mutable std::pair<K, V*> m_pair; |
|||
I m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V> |
|||
class HashMap { |
|||
public: |
|||
HashMap() { } |
|||
~HashMap() { } |
|||
|
|||
using iterator = HashMapIterator<K, V, typename WTF::HashMap<K, V>::iterator>; |
|||
using const_iterator = HashMapIterator<K, const V, typename WTF::HashMap<K, V>::const_iterator>; |
|||
|
|||
iterator begin() { return iterator(m_impl.begin()); } |
|||
iterator end() { return iterator(m_impl.end()); } |
|||
iterator find(const K& k) { return iterator(m_impl.find(k)); } |
|||
const_iterator begin() const { return const_iterator(m_impl.begin()); } |
|||
const_iterator end() const { return const_iterator(m_impl.end()); } |
|||
const_iterator find(const K& k) const { return const_iterator(m_impl.find(k)); } |
|||
|
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return m_impl.isEmpty(); } |
|||
bool set(const K& k, const V& v) { return m_impl.set(k, v).isNewEntry; } |
|||
bool contains(const K& k) const { return m_impl.contains(k); } |
|||
V get(const K& k) const { return m_impl.get(k); } |
|||
void remove(const K& k) { m_impl.remove(k); } |
|||
void clear() { m_impl.clear(); } |
|||
V take(const K& k) { return m_impl.take(k); } |
|||
|
|||
private: |
|||
WTF::HashMap<K, V> m_impl; |
|||
}; |
|||
|
|||
template <typename K, typename V> |
|||
class HashMap<K, std::unique_ptr<V>> { |
|||
public: |
|||
HashMap() { } |
|||
~HashMap() { } |
|||
|
|||
using iterator = HashMapIterator<K, std::unique_ptr<V>, typename WTF::HashMap<K, std::unique_ptr<V>>::iterator>; |
|||
using const_iterator = HashMapIterator<K, std::unique_ptr<V>, typename WTF::HashMap<K, std::unique_ptr<V>>::const_iterator>; |
|||
|
|||
iterator begin() { return iterator(m_impl.begin()); } |
|||
iterator end() { return iterator(m_impl.end()); } |
|||
iterator find(const K& k) { return iterator(m_impl.find(k)); } |
|||
const_iterator begin() const { return const_iterator(m_impl.begin()); } |
|||
const_iterator end() const { return const_iterator(m_impl.end()); } |
|||
const_iterator find(const K& k) const { return const_iterator(m_impl.find(k)); } |
|||
|
|||
size_t size() const { return m_impl.size(); } |
|||
bool isEmpty() const { return m_impl.isEmpty(); } |
|||
bool set(const K& k, std::unique_ptr<V> v) { return m_impl.set(k, std::move(v)).isNewEntry; } |
|||
bool contains(const K& k) const { return m_impl.contains(k); } |
|||
V* get(const K& k) const { return m_impl.get(k); } |
|||
std::unique_ptr<V> take(const K& k) { return m_impl.take(k); } |
|||
void remove(const K& k) { m_impl.remove(k); } |
|||
void clear() { m_impl.clear(); } |
|||
|
|||
private: |
|||
WTF::HashMap<K, std::unique_ptr<V>> m_impl; |
|||
}; |
|||
|
|||
template <typename K> |
|||
class HashSet : public protocol::HashMap<K, K> { |
|||
public: |
|||
void add(const K& k) { this->set(k, k); } |
|||
}; |
|||
|
|||
} // namespace platform
|
|||
} // namespace blink
|
|||
|
|||
#endif // !defined(CollectionsWTF_h)
|
@ -1,104 +0,0 @@ |
|||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
#include "platform/v8_inspector/V8DebuggerScript.h" |
|||
|
|||
namespace blink { |
|||
|
|||
V8DebuggerScript::V8DebuggerScript() |
|||
: m_startLine(0) |
|||
, m_startColumn(0) |
|||
, m_endLine(0) |
|||
, m_endColumn(0) |
|||
, m_executionContextId(0) |
|||
, m_isContentScript(false) |
|||
, m_isInternalScript(false) |
|||
, m_isLiveEdit(false) |
|||
{ |
|||
} |
|||
|
|||
String16 V8DebuggerScript::sourceURL() const |
|||
{ |
|||
return m_sourceURL.isEmpty() ? m_url : m_sourceURL; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setURL(const String16& url) |
|||
{ |
|||
m_url = url; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setSourceURL(const String16& sourceURL) |
|||
{ |
|||
m_sourceURL = sourceURL; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setSourceMappingURL(const String16& sourceMappingURL) |
|||
{ |
|||
m_sourceMappingURL = sourceMappingURL; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setSource(const String16& source) |
|||
{ |
|||
m_source = source; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setHash(const String16& hash) |
|||
{ |
|||
m_hash = hash; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setStartLine(int startLine) |
|||
{ |
|||
m_startLine = startLine; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setStartColumn(int startColumn) |
|||
{ |
|||
m_startColumn = startColumn; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setEndLine(int endLine) |
|||
{ |
|||
m_endLine = endLine; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setEndColumn(int endColumn) |
|||
{ |
|||
m_endColumn = endColumn; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setExecutionContextId(int executionContextId) |
|||
{ |
|||
m_executionContextId = executionContextId; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setIsContentScript(bool isContentScript) |
|||
{ |
|||
m_isContentScript = isContentScript; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setIsInternalScript(bool isInternalScript) |
|||
{ |
|||
m_isInternalScript = isInternalScript; |
|||
return *this; |
|||
} |
|||
|
|||
V8DebuggerScript& V8DebuggerScript::setIsLiveEdit(bool isLiveEdit) |
|||
{ |
|||
m_isLiveEdit = isLiveEdit; |
|||
return *this; |
|||
} |
|||
|
|||
} // namespace blink
|
@ -1,47 +0,0 @@ |
|||
/*
|
|||
* Copyright (C) 2012 Google Inc. All rights reserved. |
|||
* |
|||
* Redistribution and use in source and binary forms, with or without |
|||
* modification, are permitted provided that the following conditions |
|||
* are met: |
|||
* 1. Redistributions of source code must retain the above copyright |
|||
* notice, this list of conditions and the following disclaimer. |
|||
* 2. Redistributions in binary form must reproduce the above copyright |
|||
* notice, this list of conditions and the following disclaimer in the |
|||
* documentation and/or other materials provided with the distribution. |
|||
* |
|||
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY |
|||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|||
* DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
|||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
|||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|||
*/ |
|||
|
|||
#ifndef ConsoleAPITypes_h |
|||
#define ConsoleAPITypes_h |
|||
|
|||
namespace blink { |
|||
|
|||
enum MessageType { |
|||
LogMessageType = 1, |
|||
DirMessageType, |
|||
DirXMLMessageType, |
|||
TableMessageType, |
|||
TraceMessageType, |
|||
StartGroupMessageType, |
|||
StartGroupCollapsedMessageType, |
|||
EndGroupMessageType, |
|||
ClearMessageType, |
|||
AssertMessageType, |
|||
TimeEndMessageType, |
|||
CountMessageType |
|||
}; |
|||
|
|||
} // namespace blink
|
|||
|
|||
#endif // ConsoleAPITypes_h
|
@ -1,55 +0,0 @@ |
|||
/*
|
|||
* Copyright (C) 2011 Apple Inc. All rights reserved. |
|||
* |
|||
* Redistribution and use in source and binary forms, with or without |
|||
* modification, are permitted provided that the following conditions |
|||
* are met: |
|||
* 1. Redistributions of source code must retain the above copyright |
|||
* notice, this list of conditions and the following disclaimer. |
|||
* 2. Redistributions in binary form must reproduce the above copyright |
|||
* notice, this list of conditions and the following disclaimer in the |
|||
* documentation and/or other materials provided with the distribution. |
|||
* |
|||
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
|||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
|||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
|||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
|||
* THE POSSIBILITY OF SUCH DAMAGE. |
|||
*/ |
|||
|
|||
#ifndef ConsoleTypes_h |
|||
#define ConsoleTypes_h |
|||
|
|||
namespace blink { |
|||
|
|||
enum MessageSource { |
|||
XMLMessageSource, |
|||
JSMessageSource, |
|||
NetworkMessageSource, |
|||
ConsoleAPIMessageSource, |
|||
StorageMessageSource, |
|||
AppCacheMessageSource, |
|||
RenderingMessageSource, |
|||
SecurityMessageSource, |
|||
OtherMessageSource, |
|||
DeprecationMessageSource, |
|||
}; |
|||
|
|||
enum MessageLevel { |
|||
DebugMessageLevel = 4, |
|||
LogMessageLevel = 1, |
|||
InfoMessageLevel = 5, |
|||
WarningMessageLevel = 2, |
|||
ErrorMessageLevel = 3, |
|||
RevokedErrorMessageLevel = 6 |
|||
}; |
|||
|
|||
} // namespace blink
|
|||
|
|||
#endif // ConsoleTypes_h
|
@ -1,17 +0,0 @@ |
|||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
#ifndef V8ToProtocolValue_h |
|||
#define V8ToProtocolValue_h |
|||
|
|||
#include "platform/inspector_protocol/Values.h" |
|||
#include <v8.h> |
|||
|
|||
namespace blink { |
|||
|
|||
PLATFORM_EXPORT std::unique_ptr<protocol::Value> toProtocolValue(v8::Local<v8::Context>, v8::Local<v8::Value>, int maxDepth = protocol::Value::maxDepth); |
|||
|
|||
} // namespace blink
|
|||
|
|||
#endif // V8ToProtocolValue_h
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue