| Index: third_party/WebKit/Source/core/inspector/v8/V8DebuggerScript.h
|
| diff --git a/third_party/WebKit/Source/core/inspector/v8/V8DebuggerScript.h b/third_party/WebKit/Source/core/inspector/v8/V8DebuggerScript.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..297251b150b363f95c6c2233effe4636b26ee0b0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/v8/V8DebuggerScript.h
|
| @@ -0,0 +1,102 @@
|
| +/*
|
| + * 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 V8DebuggerScript_h
|
| +#define V8DebuggerScript_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 {
|
| +
|
| +class CORE_EXPORT V8DebuggerScript {
|
| + DISALLOW_NEW();
|
| +public:
|
| + V8DebuggerScript();
|
| +
|
| + 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);
|
| +
|
| + V8DebuggerScript& setURL(const String&);
|
| + V8DebuggerScript& setSourceURL(const String&);
|
| + V8DebuggerScript& setSourceMappingURL(const String&);
|
| + V8DebuggerScript& setSource(const String&);
|
| + V8DebuggerScript& setStartLine(int);
|
| + V8DebuggerScript& setStartColumn(int);
|
| + V8DebuggerScript& setEndLine(int);
|
| + V8DebuggerScript& setEndColumn(int);
|
| + V8DebuggerScript& setIsContentScript(bool);
|
| + V8DebuggerScript& setIsInternalScript(bool);
|
| + V8DebuggerScript& 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;
|
| +};
|
| +
|
| +struct V8DebuggerParsedScript {
|
| + DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
|
| + String scriptId;
|
| + V8DebuggerScript script;
|
| + bool success;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +
|
| +#endif // V8DebuggerScript_h
|
|
|