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

Side by Side Diff: content/browser/service_worker/service_worker_controllee_request_handler.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_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 26 matching lines...) Expand all
37 FetchCredentialsMode credentials_mode, 37 FetchCredentialsMode credentials_mode,
38 ResourceType resource_type, 38 ResourceType resource_type,
39 RequestContextType request_context_type, 39 RequestContextType request_context_type,
40 RequestContextFrameType frame_type, 40 RequestContextFrameType frame_type,
41 scoped_refptr<ResourceRequestBody> body); 41 scoped_refptr<ResourceRequestBody> body);
42 virtual ~ServiceWorkerControlleeRequestHandler(); 42 virtual ~ServiceWorkerControlleeRequestHandler();
43 43
44 // Called via custom URLRequestJobFactory. 44 // Called via custom URLRequestJobFactory.
45 virtual net::URLRequestJob* MaybeCreateJob( 45 virtual net::URLRequestJob* MaybeCreateJob(
46 net::URLRequest* request, 46 net::URLRequest* request,
47 net::NetworkDelegate* network_delegate) OVERRIDE; 47 net::NetworkDelegate* network_delegate) override;
48 48
49 virtual void GetExtraResponseInfo( 49 virtual void GetExtraResponseInfo(
50 bool* was_fetched_via_service_worker, 50 bool* was_fetched_via_service_worker,
51 bool* was_fallback_required_by_service_worker, 51 bool* was_fallback_required_by_service_worker,
52 GURL* original_url_via_service_worker, 52 GURL* original_url_via_service_worker,
53 base::TimeTicks* fetch_start_time, 53 base::TimeTicks* fetch_start_time,
54 base::TimeTicks* fetch_ready_time, 54 base::TimeTicks* fetch_ready_time,
55 base::TimeTicks* fetch_end_time) const OVERRIDE; 55 base::TimeTicks* fetch_end_time) const override;
56 56
57 private: 57 private:
58 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 58 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
59 ActivateWaitingVersion); 59 ActivateWaitingVersion);
60 typedef ServiceWorkerControlleeRequestHandler self; 60 typedef ServiceWorkerControlleeRequestHandler self;
61 61
62 // For main resource case. 62 // For main resource case.
63 void PrepareForMainResource(const GURL& url); 63 void PrepareForMainResource(const GURL& url);
64 void DidLookupRegistrationForMainResource( 64 void DidLookupRegistrationForMainResource(
65 ServiceWorkerStatusCode status, 65 ServiceWorkerStatusCode status,
(...skipping 13 matching lines...) Expand all
79 RequestContextFrameType frame_type_; 79 RequestContextFrameType frame_type_;
80 scoped_refptr<ResourceRequestBody> body_; 80 scoped_refptr<ResourceRequestBody> body_;
81 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; 81 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); 83 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler);
84 }; 84 };
85 85
86 } // namespace content 86 } // namespace content
87 87
88 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_ 88 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698