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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp

Issue 1601283003: DevTools: deoilpanize inspector/v8 and related classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 4 years, 11 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 for (Vector<String>::const_iterator it = urls.begin(); it != urls.end(); ++i t) 217 for (Vector<String>::const_iterator it = urls.begin(); it != urls.end(); ++i t)
218 executionContext()->removeURLFromMemoryCache(completeURL(*it)); 218 executionContext()->removeURLFromMemoryCache(completeURL(*it));
219 WorkerGlobalScope::importScripts(urls, exceptionState); 219 WorkerGlobalScope::importScripts(urls, exceptionState);
220 } 220 }
221 221
222 PassOwnPtrWillBeRawPtr<CachedMetadataHandler> ServiceWorkerGlobalScope::createWo rkerScriptCachedMetadataHandler(const KURL& scriptURL, const Vector<char>* metaD ata) 222 PassOwnPtrWillBeRawPtr<CachedMetadataHandler> ServiceWorkerGlobalScope::createWo rkerScriptCachedMetadataHandler(const KURL& scriptURL, const Vector<char>* metaD ata)
223 { 223 {
224 return ServiceWorkerScriptCachedMetadataHandler::create(this, scriptURL, met aData); 224 return ServiceWorkerScriptCachedMetadataHandler::create(this, scriptURL, met aData);
225 } 225 }
226 226
227 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRe fPtrWillBeRawPtr<ScriptCallStack> callStack) 227 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRe fPtr<ScriptCallStack> callStack)
228 { 228 {
229 WorkerGlobalScope::logExceptionToConsole(errorMessage, scriptId, sourceURL, lineNumber, columnNumber, callStack); 229 WorkerGlobalScope::logExceptionToConsole(errorMessage, scriptId, sourceURL, lineNumber, columnNumber, callStack);
230 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber, columnNu mber); 230 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber, columnNu mber);
231 consoleMessage->setScriptId(scriptId); 231 consoleMessage->setScriptId(scriptId);
232 consoleMessage->setCallStack(callStack); 232 consoleMessage->setCallStack(callStack);
233 addMessageToWorkerConsole(consoleMessage.release()); 233 addMessageToWorkerConsole(consoleMessage.release());
234 } 234 }
235 235
236 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta dataSize) 236 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta dataSize)
237 { 237 {
238 ++m_scriptCount; 238 ++m_scriptCount;
239 m_scriptTotalSize += scriptSize; 239 m_scriptTotalSize += scriptSize;
240 m_scriptCachedMetadataTotalSize += cachedMetadataSize; 240 m_scriptCachedMetadataTotalSize += cachedMetadataSize;
241 } 241 }
242 242
243 } // namespace blink 243 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698