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

Side by Side Diff: content/browser/service_worker/service_worker_controllee_request_handler.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 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_CONTROLLEE_REQUEST_HANDLER _H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "content/browser/service_worker/service_worker_request_handler.h" 9 #include "content/browser/service_worker/service_worker_request_handler.h"
10 #include "content/common/service_worker/service_worker_types.h" 10 #include "content/common/service_worker/service_worker_types.h"
(...skipping 22 matching lines...) Expand all
33 ServiceWorkerControlleeRequestHandler( 33 ServiceWorkerControlleeRequestHandler(
34 base::WeakPtr<ServiceWorkerContextCore> context, 34 base::WeakPtr<ServiceWorkerContextCore> context,
35 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 35 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
36 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 36 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
37 FetchRequestMode request_mode, 37 FetchRequestMode request_mode,
38 FetchCredentialsMode credentials_mode, 38 FetchCredentialsMode credentials_mode,
39 ResourceType resource_type, 39 ResourceType resource_type,
40 RequestContextType request_context_type, 40 RequestContextType request_context_type,
41 RequestContextFrameType frame_type, 41 RequestContextFrameType frame_type,
42 scoped_refptr<ResourceRequestBody> body); 42 scoped_refptr<ResourceRequestBody> body);
43 virtual ~ServiceWorkerControlleeRequestHandler(); 43 ~ServiceWorkerControlleeRequestHandler() override;
44 44
45 // Called via custom URLRequestJobFactory. 45 // Called via custom URLRequestJobFactory.
46 virtual net::URLRequestJob* MaybeCreateJob( 46 net::URLRequestJob* MaybeCreateJob(
47 net::URLRequest* request, 47 net::URLRequest* request,
48 net::NetworkDelegate* network_delegate, 48 net::NetworkDelegate* network_delegate,
49 ResourceContext* resource_context) override; 49 ResourceContext* resource_context) override;
50 50
51 virtual void GetExtraResponseInfo( 51 void GetExtraResponseInfo(
52 bool* was_fetched_via_service_worker, 52 bool* was_fetched_via_service_worker,
53 bool* was_fallback_required_by_service_worker, 53 bool* was_fallback_required_by_service_worker,
54 GURL* original_url_via_service_worker, 54 GURL* original_url_via_service_worker,
55 blink::WebServiceWorkerResponseType* response_type_via_service_worker, 55 blink::WebServiceWorkerResponseType* response_type_via_service_worker,
56 base::TimeTicks* fetch_start_time, 56 base::TimeTicks* fetch_start_time,
57 base::TimeTicks* fetch_ready_time, 57 base::TimeTicks* fetch_ready_time,
58 base::TimeTicks* fetch_end_time) const override; 58 base::TimeTicks* fetch_end_time) const override;
59 59
60 private: 60 private:
61 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 61 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
(...skipping 21 matching lines...) Expand all
83 scoped_refptr<ResourceRequestBody> body_; 83 scoped_refptr<ResourceRequestBody> body_;
84 ResourceContext* resource_context_; 84 ResourceContext* resource_context_;
85 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; 85 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); 87 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler);
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_ 92 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698