OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |