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 16 matching lines...) Expand all Loading... |
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/base/macros.h" | 33 #include "src/base/macros.h" |
34 #include "src/inspector/string-16.h" | 34 #include "src/inspector/string-16.h" |
35 | 35 |
36 #include "include/v8.h" | 36 #include "include/v8.h" |
| 37 #include "src/debug/debug-interface.h" |
37 | 38 |
38 namespace v8_inspector { | 39 namespace v8_inspector { |
39 | 40 |
40 class V8DebuggerScript { | 41 class V8DebuggerScript { |
41 public: | 42 public: |
42 V8DebuggerScript(v8::Local<v8::Context>, v8::Local<v8::Object>, | 43 V8DebuggerScript(v8::Isolate* isolate, |
| 44 v8::Local<v8::DebugInterface::Script> script, |
43 bool isLiveEdit); | 45 bool isLiveEdit); |
44 ~V8DebuggerScript(); | 46 ~V8DebuggerScript(); |
45 | 47 |
46 const String16& scriptId() const { return m_id; } | 48 const String16& scriptId() const { return m_id; } |
47 const String16& url() const { return m_url; } | 49 const String16& url() const { return m_url; } |
48 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } | 50 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
49 const String16& sourceURL() const; | 51 const String16& sourceURL() const; |
50 const String16& sourceMappingURL() const { return m_sourceMappingURL; } | 52 const String16& sourceMappingURL() const { return m_sourceMappingURL; } |
51 v8::Local<v8::String> source(v8::Isolate*) const; | 53 v8::Local<v8::String> source(v8::Isolate*) const; |
52 const String16& hash() const { return m_hash; } | 54 const String16& hash() const { return m_hash; } |
(...skipping 25 matching lines...) Expand all Loading... |
78 int m_executionContextId; | 80 int m_executionContextId; |
79 String16 m_executionContextAuxData; | 81 String16 m_executionContextAuxData; |
80 bool m_isLiveEdit; | 82 bool m_isLiveEdit; |
81 | 83 |
82 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); | 84 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
83 }; | 85 }; |
84 | 86 |
85 } // namespace v8_inspector | 87 } // namespace v8_inspector |
86 | 88 |
87 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 89 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
OLD | NEW |