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

Side by Side Diff: content/browser/service_worker/service_worker_context_wrapper.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // The process manager can be used on either UI or IO. 62 // The process manager can be used on either UI or IO.
63 ServiceWorkerProcessManager* process_manager() { 63 ServiceWorkerProcessManager* process_manager() {
64 return process_manager_.get(); 64 return process_manager_.get();
65 } 65 }
66 66
67 // ServiceWorkerContext implementation: 67 // ServiceWorkerContext implementation:
68 virtual void RegisterServiceWorker( 68 virtual void RegisterServiceWorker(
69 const GURL& pattern, 69 const GURL& pattern,
70 const GURL& script_url, 70 const GURL& script_url,
71 const ResultCallback& continuation) OVERRIDE; 71 const ResultCallback& continuation) override;
72 virtual void UnregisterServiceWorker(const GURL& pattern, 72 virtual void UnregisterServiceWorker(const GURL& pattern,
73 const ResultCallback& continuation) 73 const ResultCallback& continuation)
74 OVERRIDE; 74 override;
75 virtual void Terminate() OVERRIDE; 75 virtual void Terminate() override;
76 virtual void GetAllOriginsInfo(const GetUsageInfoCallback& callback) OVERRIDE; 76 virtual void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
77 virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE; 77 virtual void DeleteForOrigin(const GURL& origin_url) override;
78 78
79 void AddObserver(ServiceWorkerContextObserver* observer); 79 void AddObserver(ServiceWorkerContextObserver* observer);
80 void RemoveObserver(ServiceWorkerContextObserver* observer); 80 void RemoveObserver(ServiceWorkerContextObserver* observer);
81 81
82 bool is_incognito() const { return is_incognito_; } 82 bool is_incognito() const { return is_incognito_; }
83 83
84 // The URLRequestContext doesn't exist until after the StoragePartition is 84 // The URLRequestContext doesn't exist until after the StoragePartition is
85 // made (which is after this object is made). This function must be called 85 // made (which is after this object is made). This function must be called
86 // after this object is created but before any ServiceWorkerCache operations. 86 // after this object is created but before any ServiceWorkerCache operations.
87 // It must be called on the IO thread. If either parameter is NULL the 87 // It must be called on the IO thread. If either parameter is NULL the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Cleared in Shutdown(): 120 // Cleared in Shutdown():
121 scoped_ptr<ServiceWorkerContextCore> context_core_; 121 scoped_ptr<ServiceWorkerContextCore> context_core_;
122 122
123 // Initialized in Init(); true of the user data directory is empty. 123 // Initialized in Init(); true of the user data directory is empty.
124 bool is_incognito_; 124 bool is_incognito_;
125 }; 125 };
126 126
127 } // namespace content 127 } // namespace content
128 128
129 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 129 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698