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

Side by Side Diff: third_party/WebKit/Source/modules/cachestorage/Cache.cpp

Issue 1373693002: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (3/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 2 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/cachestorage/Cache.h" 6 #include "modules/cachestorage/Cache.h"
7 7
8 #include "bindings/core/v8/CallbackPromiseAdapter.h" 8 #include "bindings/core/v8/CallbackPromiseAdapter.h"
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
11 #include "bindings/core/v8/ScriptState.h" 11 #include "bindings/core/v8/ScriptState.h"
12 #include "bindings/core/v8/V8Binding.h" 12 #include "bindings/core/v8/V8Binding.h"
13 #include "bindings/core/v8/V8ThrowException.h" 13 #include "bindings/core/v8/V8ThrowException.h"
14 #include "bindings/modules/v8/V8Response.h" 14 #include "bindings/modules/v8/V8Response.h"
15 #include "core/dom/DOMException.h" 15 #include "core/dom/DOMException.h"
16 #include "core/dom/ExceptionCode.h" 16 #include "core/dom/ExceptionCode.h"
17 #include "core/inspector/ConsoleMessage.h" 17 #include "core/inspector/ConsoleMessage.h"
18 #include "modules/cachestorage/CacheStorageError.h" 18 #include "modules/cachestorage/CacheStorageError.h"
19 #include "modules/fetch/BodyStreamBuffer.h" 19 #include "modules/fetch/BodyStreamBuffer.h"
20 #include "modules/fetch/FetchDataLoader.h" 20 #include "modules/fetch/FetchDataLoader.h"
21 #include "modules/fetch/GlobalFetch.h" 21 #include "modules/fetch/GlobalFetch.h"
22 #include "modules/fetch/Request.h" 22 #include "modules/fetch/Request.h"
23 #include "modules/fetch/Response.h" 23 #include "modules/fetch/Response.h"
24 #include "public/platform/WebPassOwnPtr.h" 24 #include "public/platform/WebPassOwnPtr.h"
25 #include "public/platform/WebServiceWorkerCache.h" 25 #include "public/platform/modules/serviceworker/WebServiceWorkerCache.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 namespace { 29 namespace {
30 30
31 void checkCacheQueryOptions(const CacheQueryOptions& options, ExecutionContext* context) 31 void checkCacheQueryOptions(const CacheQueryOptions& options, ExecutionContext* context)
32 { 32 {
33 if (options.ignoreSearch()) 33 if (options.ignoreSearch())
34 context->addConsoleMessage(ConsoleMessage::create(JSMessageSource, Warni ngMessageLevel, "Cache.match() does not support 'ignoreSearch' option yet. See h ttp://crbug.com/520784")); 34 context->addConsoleMessage(ConsoleMessage::create(JSMessageSource, Warni ngMessageLevel, "Cache.match() does not support 'ignoreSearch' option yet. See h ttp://crbug.com/520784"));
35 if (options.ignoreMethod()) 35 if (options.ignoreMethod())
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 m_webCache->dispatchKeys(new CacheWithRequestsCallbacks(resolver), 0, toWebQ ueryParams(options)); 547 m_webCache->dispatchKeys(new CacheWithRequestsCallbacks(resolver), 0, toWebQ ueryParams(options));
548 return promise; 548 return promise;
549 } 549 }
550 550
551 WebServiceWorkerCache* Cache::webCache() const 551 WebServiceWorkerCache* Cache::webCache() const
552 { 552 {
553 return m_webCache.get(); 553 return m_webCache.get();
554 } 554 }
555 555
556 } // namespace blink 556 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/cachestorage/Cache.h ('k') | third_party/WebKit/Source/modules/cachestorage/CacheStorage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698