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

Side by Side Diff: content/browser/service_worker/service_worker_cache_listener.h

Issue 637183002: Replace FINAL and OVERRIDE with their C++11 counterparts in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_LISTENER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_LISTENER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_LISTENER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_LISTENER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "content/browser/service_worker/embedded_worker_instance.h" 10 #include "content/browser/service_worker/embedded_worker_instance.h"
(...skipping 10 matching lines...) Expand all
21 // This class listens for requests on the Cache APIs, and sends response 21 // This class listens for requests on the Cache APIs, and sends response
22 // messages to the renderer process. There is one instance per 22 // messages to the renderer process. There is one instance per
23 // ServiceWorkerVersion instance. 23 // ServiceWorkerVersion instance.
24 class ServiceWorkerCacheListener : public EmbeddedWorkerInstance::Listener { 24 class ServiceWorkerCacheListener : public EmbeddedWorkerInstance::Listener {
25 public: 25 public:
26 ServiceWorkerCacheListener(ServiceWorkerVersion* version, 26 ServiceWorkerCacheListener(ServiceWorkerVersion* version,
27 base::WeakPtr<ServiceWorkerContextCore> context); 27 base::WeakPtr<ServiceWorkerContextCore> context);
28 virtual ~ServiceWorkerCacheListener(); 28 virtual ~ServiceWorkerCacheListener();
29 29
30 // From EmbeddedWorkerInstance::Listener: 30 // From EmbeddedWorkerInstance::Listener:
31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 31 virtual bool OnMessageReceived(const IPC::Message& message) override;
32 32
33 private: 33 private:
34 // The message receiver functions for the CacheStorage API: 34 // The message receiver functions for the CacheStorage API:
35 void OnCacheStorageGet(int request_id, const base::string16& cache_name); 35 void OnCacheStorageGet(int request_id, const base::string16& cache_name);
36 void OnCacheStorageHas(int request_id, const base::string16& cache_name); 36 void OnCacheStorageHas(int request_id, const base::string16& cache_name);
37 void OnCacheStorageCreate(int request_id, 37 void OnCacheStorageCreate(int request_id,
38 const base::string16& cache_name); 38 const base::string16& cache_name);
39 void OnCacheStorageDelete(int request_id, 39 void OnCacheStorageDelete(int request_id,
40 const base::string16& cache_name); 40 const base::string16& cache_name);
41 void OnCacheStorageKeys(int request_id); 41 void OnCacheStorageKeys(int request_id);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 CacheID next_cache_id_; 118 CacheID next_cache_id_;
119 119
120 base::WeakPtrFactory<ServiceWorkerCacheListener> weak_factory_; 120 base::WeakPtrFactory<ServiceWorkerCacheListener> weak_factory_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCacheListener); 122 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCacheListener);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_LISTENER_H_ 127 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CACHE_LISTENER_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_cache.cc ('k') | content/browser/service_worker/service_worker_cache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698