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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.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/V8ConsoleMessage.h" 5 #include "platform/v8_inspector/V8ConsoleMessage.h"
6 6
7 #include "platform/v8_inspector/InspectedContext.h" 7 #include "platform/v8_inspector/InspectedContext.h"
8 #include "platform/v8_inspector/V8ConsoleAgentImpl.h" 8 #include "platform/v8_inspector/V8ConsoleAgentImpl.h"
9 #include "platform/v8_inspector/V8InspectorImpl.h" 9 #include "platform/v8_inspector/V8InspectorImpl.h"
10 #include "platform/v8_inspector/V8InspectorSessionImpl.h" 10 #include "platform/v8_inspector/V8InspectorSessionImpl.h"
11 #include "platform/v8_inspector/V8RuntimeAgentImpl.h" 11 #include "platform/v8_inspector/V8RuntimeAgentImpl.h"
12 #include "platform/v8_inspector/V8StackTraceImpl.h" 12 #include "platform/v8_inspector/V8StackTraceImpl.h"
13 #include "platform/v8_inspector/V8StringUtil.h" 13 #include "platform/v8_inspector/V8StringUtil.h"
14 #include "platform/v8_inspector/public/V8InspectorClient.h" 14 #include "platform/v8_inspector/public/V8InspectorClient.h"
15 15
16 namespace blink { 16 namespace v8_inspector {
17 17
18 namespace { 18 namespace {
19 19
20 String16 consoleAPITypeValue(ConsoleAPIType type) 20 String16 consoleAPITypeValue(ConsoleAPIType type)
21 { 21 {
22 switch (type) { 22 switch (type) {
23 case ConsoleAPIType::kLog: return protocol::Runtime::ConsoleAPICalled::TypeE num::Log; 23 case ConsoleAPIType::kLog: return protocol::Runtime::ConsoleAPICalled::TypeE num::Log;
24 case ConsoleAPIType::kDebug: return protocol::Runtime::ConsoleAPICalled::Typ eEnum::Debug; 24 case ConsoleAPIType::kDebug: return protocol::Runtime::ConsoleAPICalled::Typ eEnum::Debug;
25 case ConsoleAPIType::kInfo: return protocol::Runtime::ConsoleAPICalled::Type Enum::Info; 25 case ConsoleAPIType::kInfo: return protocol::Runtime::ConsoleAPICalled::Type Enum::Info;
26 case ConsoleAPIType::kError: return protocol::Runtime::ConsoleAPICalled::Typ eEnum::Error; 26 case ConsoleAPIType::kError: return protocol::Runtime::ConsoleAPICalled::Typ eEnum::Error;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 if (V8InspectorSessionImpl* session = m_inspector->sessionForContextGroup(m_ contextGroupId)) 423 if (V8InspectorSessionImpl* session = m_inspector->sessionForContextGroup(m_ contextGroupId))
424 session->releaseObjectGroup("console"); 424 session->releaseObjectGroup("console");
425 } 425 }
426 426
427 void V8ConsoleMessageStorage::contextDestroyed(int contextId) 427 void V8ConsoleMessageStorage::contextDestroyed(int contextId)
428 { 428 {
429 for (size_t i = 0; i < m_messages.size(); ++i) 429 for (size_t i = 0; i < m_messages.size(); ++i)
430 m_messages[i]->contextDestroyed(contextId); 430 m_messages[i]->contextDestroyed(contextId);
431 } 431 }
432 432
433 } // namespace blink 433 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698