Index: third_party/WebKit/Source/core/inspector/v8/V8DebuggerListener.h |
diff --git a/third_party/WebKit/Source/core/inspector/v8/V8DebuggerListener.h b/third_party/WebKit/Source/core/inspector/v8/V8DebuggerListener.h |
deleted file mode 100644 |
index f75a67b7b4da232a7b31c907b23b1796ce752948..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/core/inspector/v8/V8DebuggerListener.h |
+++ /dev/null |
@@ -1,125 +0,0 @@ |
-/* |
- * Copyright (C) 2008 Apple Inc. All rights reserved. |
- * Copyright (C) 2010 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. |
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of |
- * its contributors may be used to endorse or promote products derived |
- * from this software without specific prior written permission. |
- * |
- * THIS SOFTWARE IS PROVIDED BY APPLE 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 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 V8DebuggerListener_h |
-#define V8DebuggerListener_h |
- |
-#include "core/CoreExport.h" |
-#include "wtf/Allocator.h" |
-#include "wtf/Forward.h" |
-#include "wtf/Vector.h" |
-#include "wtf/text/WTFString.h" |
-#include <v8.h> |
- |
-namespace blink { |
- |
-enum CompileResult { CompileSuccess, CompileError }; |
- |
-class CORE_EXPORT V8DebuggerListener { |
-public: |
- class Script { |
- DISALLOW_NEW(); |
- public: |
- Script(); |
- |
- String url() const { return m_url; } |
- bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
- String sourceURL() const; |
- String sourceMappingURL() const { return m_sourceMappingURL; } |
- String source() const { return m_source; } |
- int startLine() const { return m_startLine; } |
- int startColumn() const { return m_startColumn; } |
- int endLine() const { return m_endLine; } |
- int endColumn() const { return m_endColumn; } |
- bool isContentScript() const { return m_isContentScript; } |
- bool isInternalScript() const { return m_isInternalScript; } |
- bool isLiveEdit() const { return m_isLiveEdit; } |
- |
- bool getBlackboxedState(unsigned blackboxGeneration, bool* isBlackboxed) const; |
- void setBlackboxedState(unsigned blackboxGeneration, bool isBlackboxed); |
- |
- Script& setURL(const String&); |
- Script& setSourceURL(const String&); |
- Script& setSourceMappingURL(const String&); |
- Script& setSource(const String&); |
- Script& setStartLine(int); |
- Script& setStartColumn(int); |
- Script& setEndLine(int); |
- Script& setEndColumn(int); |
- Script& setIsContentScript(bool); |
- Script& setIsInternalScript(bool); |
- Script& setIsLiveEdit(bool); |
- |
- private: |
- String m_url; |
- String m_sourceURL; |
- String m_sourceMappingURL; |
- String m_source; |
- int m_startLine; |
- int m_startColumn; |
- int m_endLine; |
- int m_endColumn; |
- bool m_isContentScript; |
- bool m_isInternalScript; |
- bool m_isLiveEdit; |
- // Used from outside for caching. |
- bool m_isBlackboxedURL; |
- unsigned m_blackboxGeneration; |
- }; |
- |
- enum SkipPauseRequest { |
- NoSkip, |
- Continue, |
- StepInto, |
- StepOut, |
- StepFrame |
- }; |
- |
- struct ParsedScript { |
- DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
- String scriptId; |
- Script script; |
- CompileResult compileResult; |
- }; |
- |
- virtual ~V8DebuggerListener() { } |
- |
- virtual void didParseSource(const ParsedScript&) = 0; |
- virtual SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Object> callFrames, v8::Local<v8::Value> exception, const Vector<String>& hitBreakpoints, bool isPromiseRejection) = 0; |
- virtual void didContinue() = 0; |
- virtual bool v8AsyncTaskEventsEnabled() const = 0; |
- virtual void didReceiveV8AsyncTaskEvent(v8::Local<v8::Context>, const String& eventType, const String& eventName, int id) = 0; |
- virtual bool v8PromiseEventsEnabled() const = 0; |
- virtual void didReceiveV8PromiseEvent(v8::Local<v8::Context>, v8::Local<v8::Object> promise, v8::Local<v8::Value> parentPromise, int status) = 0; |
-}; |
- |
-} // namespace blink |
- |
- |
-#endif // V8DebuggerListener_h |