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

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

Issue 603913002: [ServiceWorker] Add was_fallback_required flag to ResourceResponseInfo. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/which/whose/ 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 10
(...skipping 24 matching lines...) Expand all
35 scoped_refptr<ResourceRequestBody> body); 35 scoped_refptr<ResourceRequestBody> body);
36 virtual ~ServiceWorkerControlleeRequestHandler(); 36 virtual ~ServiceWorkerControlleeRequestHandler();
37 37
38 // Called via custom URLRequestJobFactory. 38 // Called via custom URLRequestJobFactory.
39 virtual net::URLRequestJob* MaybeCreateJob( 39 virtual net::URLRequestJob* MaybeCreateJob(
40 net::URLRequest* request, 40 net::URLRequest* request,
41 net::NetworkDelegate* network_delegate) OVERRIDE; 41 net::NetworkDelegate* network_delegate) OVERRIDE;
42 42
43 virtual void GetExtraResponseInfo( 43 virtual void GetExtraResponseInfo(
44 bool* was_fetched_via_service_worker, 44 bool* was_fetched_via_service_worker,
45 bool* was_fallback_required_by_service_worker,
45 GURL* original_url_via_service_worker, 46 GURL* original_url_via_service_worker,
46 base::TimeTicks* fetch_start_time, 47 base::TimeTicks* fetch_start_time,
47 base::TimeTicks* fetch_ready_time, 48 base::TimeTicks* fetch_ready_time,
48 base::TimeTicks* fetch_end_time) const OVERRIDE; 49 base::TimeTicks* fetch_end_time) const OVERRIDE;
49 50
50 private: 51 private:
51 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 52 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
52 ActivateWaitingVersion); 53 ActivateWaitingVersion);
53 typedef ServiceWorkerControlleeRequestHandler self; 54 typedef ServiceWorkerControlleeRequestHandler self;
54 55
(...skipping 14 matching lines...) Expand all
69 FetchRequestMode request_mode_; 70 FetchRequestMode request_mode_;
70 scoped_refptr<ResourceRequestBody> body_; 71 scoped_refptr<ResourceRequestBody> body_;
71 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; 72 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); 74 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler);
74 }; 75 };
75 76
76 } // namespace content 77 } // namespace content
77 78
78 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_ 79 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698