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

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

Issue 2058133002: Fix DevTools support of worklets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move callingContextCanAccessContext to BindingSecurity Created 4 years, 5 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 V8Inspector_h 5 #ifndef V8Inspector_h
6 #define V8Inspector_h 6 #define V8Inspector_h
7 7
8 #include "platform/inspector_protocol/Platform.h" 8 #include "platform/inspector_protocol/Platform.h"
9 #include "platform/v8_inspector/public/V8DebuggerClient.h" 9 #include "platform/v8_inspector/public/V8DebuggerClient.h"
10 #include "platform/v8_inspector/public/V8InspectorSession.h" 10 #include "platform/v8_inspector/public/V8InspectorSession.h"
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 V8Inspector(v8::Isolate*, v8::Local<v8::Context>); 29 V8Inspector(v8::Isolate*, v8::Local<v8::Context>);
30 ~V8Inspector(); 30 ~V8Inspector();
31 31
32 // Transport interface. 32 // Transport interface.
33 void connectFrontend(protocol::FrontendChannel*); 33 void connectFrontend(protocol::FrontendChannel*);
34 void disconnectFrontend(); 34 void disconnectFrontend();
35 void dispatchMessageFromFrontend(const String16& message); 35 void dispatchMessageFromFrontend(const String16& message);
36 36
37 private: 37 private:
38 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override;
39 String16 valueSubtype(v8::Local<v8::Value>) override; 38 String16 valueSubtype(v8::Local<v8::Value>) override;
40 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; 39 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override;
41 void muteWarningsAndDeprecations() override { } 40 void muteWarningsAndDeprecations() override { }
42 void unmuteWarningsAndDeprecations() override { } 41 void unmuteWarningsAndDeprecations() override { }
43 double currentTimeMS() override { return 0; }; 42 double currentTimeMS() override { return 0; };
44 43
45 void muteConsole() override; 44 void muteConsole() override;
46 void unmuteConsole() override; 45 void unmuteConsole() override;
47 bool isExecutionAllowed() override; 46 bool isExecutionAllowed() override;
48 int ensureDefaultContextInGroup(int contextGroupId) override; 47 int ensureDefaultContextInGroup(int contextGroupId) override;
(...skipping 21 matching lines...) Expand all
70 void cancelTimer(void* data) override { } 69 void cancelTimer(void* data) override { }
71 70
72 std::unique_ptr<V8Debugger> m_debugger; 71 std::unique_ptr<V8Debugger> m_debugger;
73 std::unique_ptr<V8InspectorSession> m_session; 72 std::unique_ptr<V8InspectorSession> m_session;
74 String16 m_state; 73 String16 m_state;
75 }; 74 };
76 75
77 } 76 }
78 77
79 #endif // V8Inspector_h 78 #endif // V8Inspector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698