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 20 matching lines...) Expand all Loading... |
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 | 37 |
38 namespace v8_inspector { | 38 namespace v8_inspector { |
39 | 39 |
40 class V8DebuggerScript { | 40 class V8DebuggerScript { |
41 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); | |
42 | |
43 public: | 41 public: |
44 V8DebuggerScript(v8::Local<v8::Context>, v8::Local<v8::Object>, | 42 V8DebuggerScript(v8::Local<v8::Context>, v8::Local<v8::Object>, |
45 bool isLiveEdit); | 43 bool isLiveEdit); |
46 ~V8DebuggerScript(); | 44 ~V8DebuggerScript(); |
47 | 45 |
48 const String16& scriptId() const { return m_id; } | 46 const String16& scriptId() const { return m_id; } |
49 const String16& url() const { return m_url; } | 47 const String16& url() const { return m_url; } |
50 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } | 48 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
51 const String16& sourceURL() const; | 49 const String16& sourceURL() const; |
52 const String16& sourceMappingURL() const { return m_sourceMappingURL; } | 50 const String16& sourceMappingURL() const { return m_sourceMappingURL; } |
(...skipping 20 matching lines...) Expand all Loading... |
73 String16 m_sourceMappingURL; | 71 String16 m_sourceMappingURL; |
74 v8::Global<v8::String> m_source; | 72 v8::Global<v8::String> m_source; |
75 String16 m_hash; | 73 String16 m_hash; |
76 int m_startLine; | 74 int m_startLine; |
77 int m_startColumn; | 75 int m_startColumn; |
78 int m_endLine; | 76 int m_endLine; |
79 int m_endColumn; | 77 int m_endColumn; |
80 int m_executionContextId; | 78 int m_executionContextId; |
81 String16 m_executionContextAuxData; | 79 String16 m_executionContextAuxData; |
82 bool m_isLiveEdit; | 80 bool m_isLiveEdit; |
| 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
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 |