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

Side by Side Diff: test/inspector/isolate-data.h

Issue 2916803005: [inspector] Create InjectedScript per session in each context (Closed)
Patch Set: rebased Created 3 years, 6 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 | « test/inspector/inspector-test.cc ('k') | test/inspector/isolate-data.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 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 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_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ 5 #ifndef V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_
6 #define V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ 6 #define V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "include/v8-inspector.h" 10 #include "include/v8-inspector.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const v8_inspector::StringView& reason, 51 const v8_inspector::StringView& reason,
52 const v8_inspector::StringView& details); 52 const v8_inspector::StringView& details);
53 void SchedulePauseOnNextStatement(int context_group_id, 53 void SchedulePauseOnNextStatement(int context_group_id,
54 const v8_inspector::StringView& reason, 54 const v8_inspector::StringView& reason,
55 const v8_inspector::StringView& details); 55 const v8_inspector::StringView& details);
56 void CancelPauseOnNextStatement(int context_group_id); 56 void CancelPauseOnNextStatement(int context_group_id);
57 void AsyncTaskScheduled(const v8_inspector::StringView& name, void* task, 57 void AsyncTaskScheduled(const v8_inspector::StringView& name, void* task,
58 bool recurring); 58 bool recurring);
59 void AsyncTaskStarted(void* task); 59 void AsyncTaskStarted(void* task);
60 void AsyncTaskFinished(void* task); 60 void AsyncTaskFinished(void* task);
61 void AddInspectedObject(int session_id, v8::Local<v8::Value> object);
61 62
62 // Test utilities. 63 // Test utilities.
63 void SetCurrentTimeMS(double time); 64 void SetCurrentTimeMS(double time);
64 void SetMemoryInfo(v8::Local<v8::Value> memory_info); 65 void SetMemoryInfo(v8::Local<v8::Value> memory_info);
65 void SetLogConsoleApiMessageCalls(bool log); 66 void SetLogConsoleApiMessageCalls(bool log);
66 void SetMaxAsyncTaskStacksForTest(int limit); 67 void SetMaxAsyncTaskStacksForTest(int limit);
67 void DumpAsyncTaskStacksStateForTest(); 68 void DumpAsyncTaskStacksStateForTest();
68 void FireContextCreated(v8::Local<v8::Context> context, int context_group_id); 69 void FireContextCreated(v8::Local<v8::Context> context, int context_group_id);
69 void FireContextDestroyed(v8::Local<v8::Context> context); 70 void FireContextDestroyed(v8::Local<v8::Context> context);
70 71
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 std::map<v8_inspector::V8InspectorSession*, int> context_group_by_session_; 119 std::map<v8_inspector::V8InspectorSession*, int> context_group_by_session_;
119 v8::Global<v8::Value> memory_info_; 120 v8::Global<v8::Value> memory_info_;
120 bool current_time_set_ = false; 121 bool current_time_set_ = false;
121 double current_time_ = 0.0; 122 double current_time_ = 0.0;
122 bool log_console_api_message_calls_ = false; 123 bool log_console_api_message_calls_ = false;
123 124
124 DISALLOW_COPY_AND_ASSIGN(IsolateData); 125 DISALLOW_COPY_AND_ASSIGN(IsolateData);
125 }; 126 };
126 127
127 #endif // V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ 128 #endif // V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_
OLDNEW
« no previous file with comments | « test/inspector/inspector-test.cc ('k') | test/inspector/isolate-data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698