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

Side by Side Diff: content/browser/service_worker/service_worker_request_handler.cc

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 #include "content/browser/service_worker/service_worker_request_handler.h" 5 #include "content/browser/service_worker/service_worker_request_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "content/browser/service_worker/service_worker_context_core.h" 9 #include "content/browser/service_worker/service_worker_context_core.h"
10 #include "content/browser/service_worker/service_worker_context_wrapper.h" 10 #include "content/browser/service_worker/service_worker_context_wrapper.h"
(...skipping 14 matching lines...) Expand all
25 25
26 int kUserDataKey; // Key value is not important. 26 int kUserDataKey; // Key value is not important.
27 27
28 class ServiceWorkerRequestInterceptor 28 class ServiceWorkerRequestInterceptor
29 : public net::URLRequestInterceptor { 29 : public net::URLRequestInterceptor {
30 public: 30 public:
31 ServiceWorkerRequestInterceptor() {} 31 ServiceWorkerRequestInterceptor() {}
32 virtual ~ServiceWorkerRequestInterceptor() {} 32 virtual ~ServiceWorkerRequestInterceptor() {}
33 virtual net::URLRequestJob* MaybeInterceptRequest( 33 virtual net::URLRequestJob* MaybeInterceptRequest(
34 net::URLRequest* request, 34 net::URLRequest* request,
35 net::NetworkDelegate* network_delegate) const OVERRIDE { 35 net::NetworkDelegate* network_delegate) const override {
36 ServiceWorkerRequestHandler* handler = 36 ServiceWorkerRequestHandler* handler =
37 ServiceWorkerRequestHandler::GetHandler(request); 37 ServiceWorkerRequestHandler::GetHandler(request);
38 if (!handler) 38 if (!handler)
39 return NULL; 39 return NULL;
40 return handler->MaybeCreateJob(request, network_delegate); 40 return handler->MaybeCreateJob(request, network_delegate);
41 } 41 }
42 42
43 private: 43 private:
44 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestInterceptor); 44 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestInterceptor);
45 }; 45 };
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 121 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
122 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 122 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
123 ResourceType resource_type) 123 ResourceType resource_type)
124 : context_(context), 124 : context_(context),
125 provider_host_(provider_host), 125 provider_host_(provider_host),
126 blob_storage_context_(blob_storage_context), 126 blob_storage_context_(blob_storage_context),
127 resource_type_(resource_type) { 127 resource_type_(resource_type) {
128 } 128 }
129 129
130 } // namespace content 130 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698