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

Side by Side Diff: src/inspector/v8-console.h

Issue 2784603003: Revert of [inspector] console get all information from inspector when needed (Closed)
Patch Set: Created 3 years, 8 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/inspected-context.cc ('k') | src/inspector/v8-console.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 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project 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 V8_INSPECTOR_V8CONSOLE_H_ 5 #ifndef V8_INSPECTOR_V8CONSOLE_H_
6 #define V8_INSPECTOR_V8CONSOLE_H_ 6 #define V8_INSPECTOR_V8CONSOLE_H_
7 7
8 #include "src/base/macros.h" 8 #include "src/base/macros.h"
9 9
10 #include "include/v8.h" 10 #include "include/v8.h"
11 11
12 namespace v8_inspector { 12 namespace v8_inspector {
13 13
14 class InspectedContext; 14 class InspectedContext;
15 15
16 // Console API 16 // Console API
17 // https://console.spec.whatwg.org/#console-interface 17 // https://console.spec.whatwg.org/#console-interface
18 class V8Console { 18 class V8Console {
19 public: 19 public:
20 static v8::Local<v8::Object> createConsole(InspectedContext*, 20 static v8::Local<v8::Object> createConsole(InspectedContext*,
21 bool hasMemoryAttribute); 21 bool hasMemoryAttribute);
22 static void clearInspectedContextIfNeeded(v8::Local<v8::Context>,
23 v8::Local<v8::Object> console);
22 static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*); 24 static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*);
23 25
24 class CommandLineAPIScope { 26 class CommandLineAPIScope {
25 public: 27 public:
26 CommandLineAPIScope(v8::Local<v8::Context>, 28 CommandLineAPIScope(v8::Local<v8::Context>,
27 v8::Local<v8::Object> commandLineAPI, 29 v8::Local<v8::Object> commandLineAPI,
28 v8::Local<v8::Object> global); 30 v8::Local<v8::Object> global);
29 ~CommandLineAPIScope(); 31 ~CommandLineAPIScope();
30 32
31 private: 33 private:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 110 }
109 static void inspectedObject4( 111 static void inspectedObject4(
110 const v8::FunctionCallbackInfo<v8::Value>& info) { 112 const v8::FunctionCallbackInfo<v8::Value>& info) {
111 inspectedObject(info, 4); 113 inspectedObject(info, 4);
112 } 114 }
113 }; 115 };
114 116
115 } // namespace v8_inspector 117 } // namespace v8_inspector
116 118
117 #endif // V8_INSPECTOR_V8CONSOLE_H_ 119 #endif // V8_INSPECTOR_V8CONSOLE_H_
OLDNEW
« no previous file with comments | « src/inspector/inspected-context.cc ('k') | src/inspector/v8-console.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698