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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/public/SimpleInspector.cpp

Issue 2215153002: [DevTools] Eliminate frameId and isContentScript from js protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: navigation tracker Created 4 years, 4 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 5
6 #include "platform/v8_inspector/public/SimpleInspector.h" 6 #include "platform/v8_inspector/public/SimpleInspector.h"
7 7
8 #include "platform/inspector_protocol/DispatcherBase.h" 8 #include "platform/inspector_protocol/DispatcherBase.h"
9 #include "platform/v8_inspector/V8StringUtil.h" 9 #include "platform/v8_inspector/V8StringUtil.h"
10 #include "platform/v8_inspector/public/V8Inspector.h" 10 #include "platform/v8_inspector/public/V8Inspector.h"
11 #include "platform/v8_inspector/public/V8InspectorClient.h" 11 #include "platform/v8_inspector/public/V8InspectorClient.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 SimpleInspector::SimpleInspector(v8::Isolate* isolate, v8::Local<v8::Context> co ntext) 15 SimpleInspector::SimpleInspector(v8::Isolate* isolate, v8::Local<v8::Context> co ntext)
16 : m_context(context) 16 : m_context(context)
17 { 17 {
18 m_inspector = V8Inspector::create(isolate, this); 18 m_inspector = V8Inspector::create(isolate, this);
19 m_inspector->contextCreated(V8ContextInfo(context, 1, true, "", 19 m_inspector->contextCreated(V8ContextInfo(context, 1, "NodeJS Main Context") );
20 "NodeJS Main Context", "", false));
21 } 20 }
22 21
23 SimpleInspector::~SimpleInspector() 22 SimpleInspector::~SimpleInspector()
24 { 23 {
25 disconnectFrontend(); 24 disconnectFrontend();
26 } 25 }
27 26
28 String16 SimpleInspector::valueSubtype(v8::Local<v8::Value> value) 27 String16 SimpleInspector::valueSubtype(v8::Local<v8::Value> value)
29 { 28 {
30 return String16(); 29 return String16();
(...skipping 24 matching lines...) Expand all
55 { 54 {
56 return m_context; 55 return m_context;
57 } 56 }
58 57
59 void SimpleInspector::notifyContextDestroyed() 58 void SimpleInspector::notifyContextDestroyed()
60 { 59 {
61 m_inspector->contextDestroyed(m_context); 60 m_inspector->contextDestroyed(m_context);
62 } 61 }
63 62
64 } // namespace blink 63 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698