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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h

Issue 1739613002: DevTools: validate protocol input parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined a test. Created 4 years, 9 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 | « third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8DebuggerClient_h 5 #ifndef V8DebuggerClient_h
6 #define V8DebuggerClient_h 6 #define V8DebuggerClient_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/v8_inspector/public/V8EventListenerInfo.h" 9 #include "platform/v8_inspector/public/V8EventListenerInfo.h"
10 10
11 #include <v8.h> 11 #include <v8.h>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class PLATFORM_EXPORT V8DebuggerClient { 15 class PLATFORM_EXPORT V8DebuggerClient {
16 USING_FAST_MALLOC(V8DebuggerClient);
17 public: 16 public:
18 virtual ~V8DebuggerClient() { } 17 virtual ~V8DebuggerClient() { }
19 virtual void runMessageLoopOnPause(int contextGroupId) = 0; 18 virtual void runMessageLoopOnPause(int contextGroupId) = 0;
20 virtual void quitMessageLoopOnPause() = 0; 19 virtual void quitMessageLoopOnPause() = 0;
21 virtual void muteWarningsAndDeprecations() = 0; 20 virtual void muteWarningsAndDeprecations() = 0;
22 virtual void unmuteWarningsAndDeprecations() = 0; 21 virtual void unmuteWarningsAndDeprecations() = 0;
23 virtual void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoMap&) = 0; 22 virtual void eventListeners(v8::Local<v8::Value>, V8EventListenerInfoMap&) = 0;
24 virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) = 0; 23 virtual bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) = 0;
25 24
26 virtual v8::MaybeLocal<v8::Object> instantiateObject(v8::Local<v8::Function> ) = 0; 25 virtual v8::MaybeLocal<v8::Object> instantiateObject(v8::Local<v8::Function> ) = 0;
27 virtual v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Local<v8::Script>) = 0; 26 virtual v8::MaybeLocal<v8::Value> runCompiledScript(v8::Local<v8::Context>, v8::Local<v8::Script>) = 0;
28 virtual v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8:: String>) = 0; 27 virtual v8::MaybeLocal<v8::Value> compileAndRunInternalScript(v8::Local<v8:: String>) = 0;
29 virtual v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8:: Local<v8::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value > info[]) = 0; 28 virtual v8::MaybeLocal<v8::Value> callFunction(v8::Local<v8::Function>, v8:: Local<v8::Context>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value > info[]) = 0;
30 virtual v8::MaybeLocal<v8::Value> callInternalFunction(v8::Local<v8::Functio n>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]) = 0; 29 virtual v8::MaybeLocal<v8::Value> callInternalFunction(v8::Local<v8::Functio n>, v8::Local<v8::Value> receiver, int argc, v8::Local<v8::Value> info[]) = 0;
31 30
32 virtual String valueSubtype(v8::Local<v8::Value>) = 0; 31 virtual String valueSubtype(v8::Local<v8::Value>) = 0;
33 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0; 32 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0;
34 virtual bool hasRecursionLevel() = 0; 33 virtual bool hasRecursionLevel() = 0;
35 }; 34 };
36 35
37 } // namespace blink 36 } // namespace blink
38 37
39 38
40 #endif // V8DebuggerClient_h 39 #endif // V8DebuggerClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698