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

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

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #include "platform/v8_inspector/InspectedContext.h" 5 #include "platform/v8_inspector/InspectedContext.h"
6 6
7 #include "platform/v8_inspector/InjectedScript.h" 7 #include "platform/v8_inspector/InjectedScript.h"
8 #include "platform/v8_inspector/V8Console.h" 8 #include "platform/v8_inspector/V8Console.h"
9 #include "platform/v8_inspector/V8InspectorImpl.h" 9 #include "platform/v8_inspector/V8InspectorImpl.h"
10 #include "platform/v8_inspector/V8StringUtil.h" 10 #include "platform/v8_inspector/V8StringUtil.h"
11 #include "platform/v8_inspector/public/V8ContextInfo.h" 11 #include "platform/v8_inspector/public/V8ContextInfo.h"
12 #include "platform/v8_inspector/public/V8InspectorClient.h" 12 #include "platform/v8_inspector/public/V8InspectorClient.h"
13 13
14 namespace blink { 14 namespace v8_inspector {
15 15
16 void InspectedContext::weakCallback(const v8::WeakCallbackInfo<InspectedContext> & data) 16 void InspectedContext::weakCallback(const v8::WeakCallbackInfo<InspectedContext> & data)
17 { 17 {
18 InspectedContext* context = data.GetParameter(); 18 InspectedContext* context = data.GetParameter();
19 if (!context->m_context.IsEmpty()) { 19 if (!context->m_context.IsEmpty()) {
20 context->m_context.Reset(); 20 context->m_context.Reset();
21 data.SetSecondPassCallback(&InspectedContext::weakCallback); 21 data.SetSecondPassCallback(&InspectedContext::weakCallback);
22 } else { 22 } else {
23 context->m_inspector->discardInspectedContext(context->m_contextGroupId, context->m_contextId); 23 context->m_inspector->discardInspectedContext(context->m_contextGroupId, context->m_contextId);
24 } 24 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 { 72 {
73 DCHECK(!m_injectedScript); 73 DCHECK(!m_injectedScript);
74 m_injectedScript = InjectedScript::create(this); 74 m_injectedScript = InjectedScript::create(this);
75 } 75 }
76 76
77 void InspectedContext::discardInjectedScript() 77 void InspectedContext::discardInjectedScript()
78 { 78 {
79 m_injectedScript.reset(); 79 m_injectedScript.reset();
80 } 80 }
81 81
82 } // namespace blink 82 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698