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

Side by Side Diff: content/browser/cache_storage/cache_storage_dispatcher_host.cc

Issue 1039763002: Cache Storage: Move files to content/*/cache_storage, rename classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 5 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/service_worker/cache_storage_dispatcher_host.h" 5 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/service_worker/cache_storage_context_impl.h" 8 #include "content/browser/cache_storage/cache_storage_context_impl.h"
9 #include "content/browser/service_worker/service_worker_cache_listener.h" 9 #include "content/browser/cache_storage/cache_storage_listener.h"
10 #include "content/common/service_worker/cache_storage_messages.h" 10 #include "content/common/cache_storage/cache_storage_messages.h"
11 #include "content/public/browser/content_browser_client.h" 11 #include "content/public/browser/content_browser_client.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 namespace { 15 namespace {
16 16
17 const uint32 kFilteredMessageClasses[] = {CacheStorageMsgStart}; 17 const uint32 kFilteredMessageClasses[] = {CacheStorageMsgStart};
18 18
19 } // namespace 19 } // namespace
20 20
(...skipping 23 matching lines...) Expand all
44 DCHECK(cache_listener_); 44 DCHECK(cache_listener_);
45 bool handled = cache_listener_->OnMessageReceived(message); 45 bool handled = cache_listener_->OnMessageReceived(message);
46 if (!handled) 46 if (!handled)
47 BadMessageReceived(); 47 BadMessageReceived();
48 return handled; 48 return handled;
49 } 49 }
50 50
51 void CacheStorageDispatcherHost::CreateCacheListener( 51 void CacheStorageDispatcherHost::CreateCacheListener(
52 CacheStorageContextImpl* context) { 52 CacheStorageContextImpl* context) {
53 DCHECK_CURRENTLY_ON(BrowserThread::IO); 53 DCHECK_CURRENTLY_ON(BrowserThread::IO);
54 cache_listener_.reset(new ServiceWorkerCacheListener(this, context)); 54 cache_listener_.reset(new CacheStorageListener(this, context));
55 } 55 }
56 56
57 } // namespace content 57 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/cache_storage/cache_storage_dispatcher_host.h ('k') | content/browser/cache_storage/cache_storage_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698