| 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 #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 // Forward declaration. |
| 42 class WasmTranslation; |
| 43 |
| 41 class V8DebuggerScript { | 44 class V8DebuggerScript { |
| 42 public: | 45 public: |
| 43 static std::unique_ptr<V8DebuggerScript> Create( | 46 static std::unique_ptr<V8DebuggerScript> Create( |
| 44 v8::Isolate* isolate, v8::Local<v8::DebugInterface::Script> script, | 47 v8::Isolate* isolate, v8::Local<v8::DebugInterface::Script> script, |
| 45 bool isLiveEdit); | 48 bool isLiveEdit); |
| 46 static std::unique_ptr<V8DebuggerScript> CreateWasm( | 49 static std::unique_ptr<V8DebuggerScript> CreateWasm( |
| 47 v8::Local<v8::DebugInterface::Script> script, String16 id, String16 url, | 50 v8::Local<v8::DebugInterface::Script> script, |
| 51 WasmTranslation* wasmTranslation, String16 id, String16 url, |
| 48 String16 source); | 52 String16 source); |
| 49 | 53 |
| 50 virtual ~V8DebuggerScript(); | 54 virtual ~V8DebuggerScript(); |
| 51 | 55 |
| 52 const String16& scriptId() const { return m_id; } | 56 const String16& scriptId() const { return m_id; } |
| 53 const String16& url() const { return m_url; } | 57 const String16& url() const { return m_url; } |
| 54 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } | 58 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
| 55 const String16& sourceURL() const; | 59 const String16& sourceURL() const; |
| 56 virtual const String16& sourceMappingURL() const = 0; | 60 virtual const String16& sourceMappingURL() const = 0; |
| 57 virtual String16 source(v8::Isolate*) const { return m_source; } | 61 virtual String16 source(v8::Isolate*) const { return m_source; } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 93 |
| 90 v8::Isolate* m_isolate; | 94 v8::Isolate* m_isolate; |
| 91 | 95 |
| 92 private: | 96 private: |
| 93 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); | 97 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 } // namespace v8_inspector | 100 } // namespace v8_inspector |
| 97 | 101 |
| 98 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ | 102 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ |
| OLD | NEW |