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

Side by Side Diff: Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ASSERT(m_workerGlobalScope); 112 ASSERT(m_workerGlobalScope);
113 m_workerGlobalScope->dispatchEvent(Event::create(EventTypeNames::sync)); 113 m_workerGlobalScope->dispatchEvent(Event::create(EventTypeNames::sync));
114 ServiceWorkerGlobalScopeClient::from(m_workerGlobalScope)->didHandleSyncEven t(eventID); 114 ServiceWorkerGlobalScopeClient::from(m_workerGlobalScope)->didHandleSyncEven t(eventID);
115 } 115 }
116 116
117 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) 117 void ServiceWorkerGlobalScopeProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL)
118 { 118 {
119 m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL); 119 m_client.reportException(errorMessage, lineNumber, columnNumber, sourceURL);
120 } 120 }
121 121
122 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(MessageSource source, M essageLevel level, const String& message, int lineNumber, const String& sourceUR L) 122 void ServiceWorkerGlobalScopeProxy::reportConsoleMessage(PassRefPtr<blink::Conso leMessage> consoleMessage)
123 { 123 {
124 m_client.reportConsoleMessage(source, level, message, lineNumber, sourceURL) ; 124 m_client.reportConsoleMessage(consoleMessage->source(), consoleMessage->leve l(), consoleMessage->message(), consoleMessage->lineNumber(), consoleMessage->ur l());
125 } 125 }
126 126
127 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes sage) 127 void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes sage)
128 { 128 {
129 m_client.dispatchDevToolsMessage(message); 129 m_client.dispatchDevToolsMessage(message);
130 } 130 }
131 131
132 void ServiceWorkerGlobalScopeProxy::updateInspectorStateCookie(const String& mes sage) 132 void ServiceWorkerGlobalScopeProxy::updateInspectorStateCookie(const String& mes sage)
133 { 133 {
134 m_client.saveDevToolsAgentState(message); 134 m_client.saveDevToolsAgentState(message);
(...skipping 24 matching lines...) Expand all
159 159
160 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm pl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextC lient& client) 160 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm pl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextC lient& client)
161 : m_embeddedWorker(embeddedWorker) 161 : m_embeddedWorker(embeddedWorker)
162 , m_executionContext(executionContext) 162 , m_executionContext(executionContext)
163 , m_client(client) 163 , m_client(client)
164 , m_workerGlobalScope(0) 164 , m_workerGlobalScope(0)
165 { 165 {
166 } 166 }
167 167
168 } // namespace blink 168 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698