OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 30 #ifndef V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
31 #define V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 31 #define V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
32 | 32 |
33 #include "src/inspector/Allocator.h" | 33 #include "src/base/macros.h" |
34 #include "src/inspector/String16.h" | 34 #include "src/inspector/String16.h" |
35 | 35 |
36 #include "include/v8.h" | 36 #include "include/v8.h" |
37 | 37 |
38 namespace v8_inspector { | 38 namespace v8_inspector { |
39 | 39 |
40 class V8DebuggerScript { | 40 class V8DebuggerScript { |
41 V8_INSPECTOR_DISALLOW_COPY(V8DebuggerScript); | 41 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
42 | 42 |
43 public: | 43 public: |
44 V8DebuggerScript(v8::Local<v8::Context>, v8::Local<v8::Object>, | 44 V8DebuggerScript(v8::Local<v8::Context>, v8::Local<v8::Object>, |
45 bool isLiveEdit); | 45 bool isLiveEdit); |
46 ~V8DebuggerScript(); | 46 ~V8DebuggerScript(); |
47 | 47 |
48 const String16& scriptId() const { return m_id; } | 48 const String16& scriptId() const { return m_id; } |
49 const String16& url() const { return m_url; } | 49 const String16& url() const { return m_url; } |
50 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } | 50 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
51 const String16& sourceURL() const; | 51 const String16& sourceURL() const; |
(...skipping 26 matching lines...) Expand all Loading... |
78 int m_endLine; | 78 int m_endLine; |
79 int m_endColumn; | 79 int m_endColumn; |
80 int m_executionContextId; | 80 int m_executionContextId; |
81 String16 m_executionContextAuxData; | 81 String16 m_executionContextAuxData; |
82 bool m_isLiveEdit; | 82 bool m_isLiveEdit; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace v8_inspector | 85 } // namespace v8_inspector |
86 | 86 |
87 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 87 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
OLD | NEW |