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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorConsoleAgent.cpp

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 #include "platform/v8_inspector/public/V8StackTrace.h" 34 #include "platform/v8_inspector/public/V8StackTrace.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 namespace ConsoleAgentState { 39 namespace ConsoleAgentState {
40 static const char consoleMessagesEnabled[] = "consoleMessagesEnabled"; 40 static const char consoleMessagesEnabled[] = "consoleMessagesEnabled";
41 } 41 }
42 42
43 InspectorConsoleAgent::InspectorConsoleAgent(V8InspectorSession* v8Session) 43 InspectorConsoleAgent::InspectorConsoleAgent(V8InspectorSession* v8Session)
44 : InspectorBaseAgent<InspectorConsoleAgent, protocol::Console::Frontend>("Co nsole") 44 : m_v8Session(v8Session)
45 , m_v8Session(v8Session)
46 , m_enabled(false) 45 , m_enabled(false)
47 { 46 {
48 } 47 }
49 48
50 InspectorConsoleAgent::~InspectorConsoleAgent() 49 InspectorConsoleAgent::~InspectorConsoleAgent()
51 { 50 {
52 } 51 }
53 52
54 void InspectorConsoleAgent::enable(ErrorString*) 53 void InspectorConsoleAgent::enable(ErrorString*)
55 { 54 {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 jsonObj->setStack(consoleMessage->stackTrace()->buildInspectorObject()); 201 jsonObj->setStack(consoleMessage->stackTrace()->buildInspectorObject());
203 if (consoleMessage->messageId()) 202 if (consoleMessage->messageId())
204 jsonObj->setMessageId(consoleMessage->messageId()); 203 jsonObj->setMessageId(consoleMessage->messageId());
205 if (consoleMessage->relatedMessageId()) 204 if (consoleMessage->relatedMessageId())
206 jsonObj->setRelatedMessageId(consoleMessage->relatedMessageId()); 205 jsonObj->setRelatedMessageId(consoleMessage->relatedMessageId());
207 frontend()->messageAdded(std::move(jsonObj)); 206 frontend()->messageAdded(std::move(jsonObj));
208 frontend()->flush(); 207 frontend()->flush();
209 } 208 }
210 209
211 } // namespace blink 210 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698