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

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

Issue 795323003: Move Fetch API releted code to modules/fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 24 matching lines...) Expand all
35 #include "bindings/core/v8/V8ThrowException.h" 35 #include "bindings/core/v8/V8ThrowException.h"
36 #include "core/events/Event.h" 36 #include "core/events/Event.h"
37 #include "core/fetch/MemoryCache.h" 37 #include "core/fetch/MemoryCache.h"
38 #include "core/fetch/ResourceLoaderOptions.h" 38 #include "core/fetch/ResourceLoaderOptions.h"
39 #include "core/inspector/ScriptCallStack.h" 39 #include "core/inspector/ScriptCallStack.h"
40 #include "core/inspector/WorkerInspectorController.h" 40 #include "core/inspector/WorkerInspectorController.h"
41 #include "core/loader/ThreadableLoader.h" 41 #include "core/loader/ThreadableLoader.h"
42 #include "core/workers/WorkerClients.h" 42 #include "core/workers/WorkerClients.h"
43 #include "core/workers/WorkerThreadStartupData.h" 43 #include "core/workers/WorkerThreadStartupData.h"
44 #include "modules/EventTargetModules.h" 44 #include "modules/EventTargetModules.h"
45 #include "modules/fetch/GlobalFetch.h"
45 #include "modules/serviceworkers/CacheStorage.h" 46 #include "modules/serviceworkers/CacheStorage.h"
46 #include "modules/serviceworkers/GlobalFetch.h"
47 #include "modules/serviceworkers/InspectorServiceWorkerCacheAgent.h" 47 #include "modules/serviceworkers/InspectorServiceWorkerCacheAgent.h"
48 #include "modules/serviceworkers/Request.h"
49 #include "modules/serviceworkers/ServiceWorkerClients.h" 48 #include "modules/serviceworkers/ServiceWorkerClients.h"
50 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 49 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
51 #include "modules/serviceworkers/ServiceWorkerThread.h" 50 #include "modules/serviceworkers/ServiceWorkerThread.h"
52 #include "modules/serviceworkers/WaitUntilObserver.h" 51 #include "modules/serviceworkers/WaitUntilObserver.h"
53 #include "platform/network/ResourceRequest.h" 52 #include "platform/network/ResourceRequest.h"
54 #include "platform/weborigin/KURL.h" 53 #include "platform/weborigin/KURL.h"
55 #include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h" 54 #include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h"
56 #include "public/platform/WebURL.h" 55 #include "public/platform/WebURL.h"
57 #include "wtf/CurrentTime.h" 56 #include "wtf/CurrentTime.h"
58 57
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRe fPtrWillBeRawPtr<ScriptCallStack> callStack) 198 void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRe fPtrWillBeRawPtr<ScriptCallStack> callStack)
200 { 199 {
201 WorkerGlobalScope::logExceptionToConsole(errorMessage, scriptId, sourceURL, lineNumber, columnNumber, callStack); 200 WorkerGlobalScope::logExceptionToConsole(errorMessage, scriptId, sourceURL, lineNumber, columnNumber, callStack);
202 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber); 201 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(J SMessageSource, ErrorMessageLevel, errorMessage, sourceURL, lineNumber);
203 consoleMessage->setScriptId(scriptId); 202 consoleMessage->setScriptId(scriptId);
204 consoleMessage->setCallStack(callStack); 203 consoleMessage->setCallStack(callStack);
205 addMessageToWorkerConsole(consoleMessage.release()); 204 addMessageToWorkerConsole(consoleMessage.release());
206 } 205 }
207 206
208 } // namespace blink 207 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ResponseTest.cpp ('k') | Source/modules/serviceworkers/WindowFetch.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698