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

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

Issue 2655653003: [inspector] Expose GetPossibleBreakpoints for wasm (Closed)
Patch Set: Introduce Init method and clang-format wasm-translation.cc Created 3 years, 10 months 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::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
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_
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