| 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 22 matching lines...) Expand all Loading... |
| 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 #include "src/debug/debug-interface.h" |
| 38 | 38 |
| 39 namespace v8_inspector { | 39 namespace v8_inspector { |
| 40 | 40 |
| 41 class V8DebuggerScript { | 41 class V8DebuggerScript { |
| 42 public: | 42 public: |
| 43 V8DebuggerScript(v8::Isolate* isolate, | 43 V8DebuggerScript(v8::Isolate* isolate, v8::Local<v8::debug::Script> script, |
| 44 v8::Local<v8::DebugInterface::Script> script, | |
| 45 bool isLiveEdit); | 44 bool isLiveEdit); |
| 46 V8DebuggerScript(String16 id, String16 url, String16 source); | 45 V8DebuggerScript(String16 id, String16 url, String16 source); |
| 47 ~V8DebuggerScript(); | 46 ~V8DebuggerScript(); |
| 48 | 47 |
| 49 const String16& scriptId() const { return m_id; } | 48 const String16& scriptId() const { return m_id; } |
| 50 const String16& url() const { return m_url; } | 49 const String16& url() const { return m_url; } |
| 51 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } | 50 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
| 52 const String16& sourceURL() const; | 51 const String16& sourceURL() const; |
| 53 const String16& sourceMappingURL() const { return m_sourceMappingURL; } | 52 const String16& sourceMappingURL() const { return m_sourceMappingURL; } |
| 54 String16 source(v8::Isolate*) const; | 53 String16 source(v8::Isolate*) const; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 81 mutable String16 m_hash; | 80 mutable String16 m_hash; |
| 82 int m_startLine = 0; | 81 int m_startLine = 0; |
| 83 int m_startColumn = 0; | 82 int m_startColumn = 0; |
| 84 int m_endLine = 0; | 83 int m_endLine = 0; |
| 85 int m_endColumn = 0; | 84 int m_endColumn = 0; |
| 86 int m_executionContextId = 0; | 85 int m_executionContextId = 0; |
| 87 String16 m_executionContextAuxData; | 86 String16 m_executionContextAuxData; |
| 88 bool m_isLiveEdit = false; | 87 bool m_isLiveEdit = false; |
| 89 | 88 |
| 90 v8::Isolate* m_isolate; | 89 v8::Isolate* m_isolate; |
| 91 v8::Global<v8::DebugInterface::Script> m_script; | 90 v8::Global<v8::debug::Script> m_script; |
| 92 | 91 |
| 93 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); | 92 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace v8_inspector | 95 } // namespace v8_inspector |
| 97 | 96 |
| 98 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 97 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
| OLD | NEW |