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

Side by Side Diff: src/inspector/InspectedContext.cpp

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners Created 4 years, 3 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 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 #include "src/inspector/InspectedContext.h" 5 #include "src/inspector/InspectedContext.h"
6 6
7 #include "src/inspector/InjectedScript.h" 7 #include "src/inspector/InjectedScript.h"
8 #include "src/inspector/StringUtil.h" 8 #include "src/inspector/StringUtil.h"
9 #include "src/inspector/V8Console.h" 9 #include "src/inspector/V8Console.h"
10 #include "src/inspector/V8InspectorImpl.h" 10 #include "src/inspector/V8InspectorImpl.h"
11 #include "src/inspector/V8ValueCopier.h" 11 #include "src/inspector/V8ValueCopier.h"
12 #include "src/inspector/public/V8ContextInfo.h" 12
13 #include "src/inspector/public/V8InspectorClient.h" 13 #include "include/v8-inspector.h"
14 14
15 namespace v8_inspector { 15 namespace v8_inspector {
16 16
17 void InspectedContext::weakCallback( 17 void InspectedContext::weakCallback(
18 const v8::WeakCallbackInfo<InspectedContext>& data) { 18 const v8::WeakCallbackInfo<InspectedContext>& data) {
19 InspectedContext* context = data.GetParameter(); 19 InspectedContext* context = data.GetParameter();
20 if (!context->m_context.IsEmpty()) { 20 if (!context->m_context.IsEmpty()) {
21 context->m_context.Reset(); 21 context->m_context.Reset();
22 data.SetSecondPassCallback(&InspectedContext::weakCallback); 22 data.SetSecondPassCallback(&InspectedContext::weakCallback);
23 } else { 23 } else {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 void InspectedContext::createInjectedScript() { 77 void InspectedContext::createInjectedScript() {
78 DCHECK(!m_injectedScript); 78 DCHECK(!m_injectedScript);
79 m_injectedScript = InjectedScript::create(this); 79 m_injectedScript = InjectedScript::create(this);
80 } 80 }
81 81
82 void InspectedContext::discardInjectedScript() { m_injectedScript.reset(); } 82 void InspectedContext::discardInjectedScript() { m_injectedScript.reset(); }
83 83
84 } // namespace v8_inspector 84 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698