Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/inspector/v8-debugger-script.h

Issue 2536763002: [inspector] [wasm] Implement GetPossibleBreakpoints (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | src/inspector/v8-debugger-script.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::DebugInterface::Script> script, 48 v8::Isolate* isolate, v8::Local<v8::DebugInterface::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, 51 v8::Isolate* isolate,
49 v8::Local<v8::DebugInterface::WasmScript> underlyingScript, String16 id, 52 v8::Local<v8::DebugInterface::WasmScript> underlyingScript,
50 String16 url, String16 source); 53 WasmTranslation* wasmTranslation, String16 id, String16 url,
54 String16 source);
51 55
52 virtual ~V8DebuggerScript(); 56 virtual ~V8DebuggerScript();
53 57
54 const String16& scriptId() const { return m_id; } 58 const String16& scriptId() const { return m_id; }
55 const String16& url() const { return m_url; } 59 const String16& url() const { return m_url; }
56 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } 60 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); }
57 const String16& sourceURL() const; 61 const String16& sourceURL() const;
58 virtual const String16& sourceMappingURL() const = 0; 62 virtual const String16& sourceMappingURL() const = 0;
59 virtual String16 source(v8::Isolate*) const { return m_source; } 63 virtual String16 source(v8::Isolate*) const { return m_source; }
60 const String16& hash(v8::Isolate*) const; 64 const String16& hash(v8::Isolate*) const;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 97
94 v8::Isolate* m_isolate; 98 v8::Isolate* m_isolate;
95 99
96 private: 100 private:
97 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript); 101 DISALLOW_COPY_AND_ASSIGN(V8DebuggerScript);
98 }; 102 };
99 103
100 } // namespace v8_inspector 104 } // namespace v8_inspector
101 105
102 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_ 106 #endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_
OLDNEW
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | src/inspector/v8-debugger-script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698