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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_PROVIDER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void AddScopedProcessReferenceToPattern(const GURL& pattern); 132 void AddScopedProcessReferenceToPattern(const GURL& pattern);
133 133
134 private: 134 private:
135 friend class ServiceWorkerProviderHostTest; 135 friend class ServiceWorkerProviderHostTest;
136 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, 136 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
137 UpdateBefore24Hours); 137 UpdateBefore24Hours);
138 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, 138 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
139 UpdateAfter24Hours); 139 UpdateAfter24Hours);
140 140
141 // ServiceWorkerRegistration::Listener overrides. 141 // ServiceWorkerRegistration::Listener overrides.
142 virtual void OnRegistrationFailed( 142 void OnRegistrationFailed(ServiceWorkerRegistration* registration) override;
143 ServiceWorkerRegistration* registration) override;
144 143
145 // Sets the controller version field to |version| or if |version| is NULL, 144 // Sets the controller version field to |version| or if |version| is NULL,
146 // clears the field. 145 // clears the field.
147 void SetControllerVersionAttribute(ServiceWorkerVersion* version); 146 void SetControllerVersionAttribute(ServiceWorkerVersion* version);
148 147
149 // Creates a ServiceWorkerHandle to retain |version| and returns a 148 // Creates a ServiceWorkerHandle to retain |version| and returns a
150 // ServiceWorkerInfo with the handle ID to pass to the provider. The 149 // ServiceWorkerInfo with the handle ID to pass to the provider. The
151 // provider is responsible for releasing the handle. 150 // provider is responsible for releasing the handle.
152 ServiceWorkerObjectInfo CreateHandleAndPass(ServiceWorkerVersion* version); 151 ServiceWorkerObjectInfo CreateHandleAndPass(ServiceWorkerVersion* version);
153 152
(...skipping 14 matching lines...) Expand all
168 base::WeakPtr<ServiceWorkerContextCore> context_; 167 base::WeakPtr<ServiceWorkerContextCore> context_;
169 ServiceWorkerDispatcherHost* dispatcher_host_; 168 ServiceWorkerDispatcherHost* dispatcher_host_;
170 bool allow_association_; 169 bool allow_association_;
171 170
172 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 171 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
173 }; 172 };
174 173
175 } // namespace content 174 } // namespace content
176 175
177 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 176 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698