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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile 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 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/V8ConsoleAgentImpl.h" 5 #include "platform/v8_inspector/V8ConsoleAgentImpl.h"
6 6
7 #include "platform/v8_inspector/V8ConsoleMessage.h" 7 #include "platform/v8_inspector/V8ConsoleMessage.h"
8 #include "platform/v8_inspector/V8InspectorImpl.h" 8 #include "platform/v8_inspector/V8InspectorImpl.h"
9 #include "platform/v8_inspector/V8InspectorSessionImpl.h" 9 #include "platform/v8_inspector/V8InspectorSessionImpl.h"
10 #include "platform/v8_inspector/V8StackTraceImpl.h" 10 #include "platform/v8_inspector/V8StackTraceImpl.h"
11 #include "platform/v8_inspector/protocol/Protocol.h"
11 12
12 namespace v8_inspector { 13 namespace v8_inspector {
13 14
14 namespace ConsoleAgentState { 15 namespace ConsoleAgentState {
15 static const char consoleEnabled[] = "consoleEnabled"; 16 static const char consoleEnabled[] = "consoleEnabled";
16 } 17 }
17 18
18 V8ConsoleAgentImpl::V8ConsoleAgentImpl(V8InspectorSessionImpl* session, protocol ::FrontendChannel* frontendChannel, protocol::DictionaryValue* state) 19 V8ConsoleAgentImpl::V8ConsoleAgentImpl(V8InspectorSessionImpl* session, protocol ::FrontendChannel* frontendChannel, protocol::DictionaryValue* state)
19 : m_session(session) 20 : m_session(session)
20 , m_state(state) 21 , m_state(state)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 80 }
80 81
81 void V8ConsoleAgentImpl::reportMessage(V8ConsoleMessage* message, bool generateP review) 82 void V8ConsoleAgentImpl::reportMessage(V8ConsoleMessage* message, bool generateP review)
82 { 83 {
83 DCHECK(message->origin() == V8MessageOrigin::kConsole); 84 DCHECK(message->origin() == V8MessageOrigin::kConsole);
84 message->reportToFrontend(&m_frontend); 85 message->reportToFrontend(&m_frontend);
85 m_frontend.flush(); 86 m_frontend.flush();
86 } 87 }
87 88
88 } // namespace v8_inspector 89 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698