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