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

Side by Side Diff: content/browser/service_worker/service_worker_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_REQUEST_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 virtual ~ServiceWorkerRequestHandler(); 65 virtual ~ServiceWorkerRequestHandler();
66 66
67 // Called via custom URLRequestJobFactory. 67 // Called via custom URLRequestJobFactory.
68 virtual net::URLRequestJob* MaybeCreateJob( 68 virtual net::URLRequestJob* MaybeCreateJob(
69 net::URLRequest* request, 69 net::URLRequest* request,
70 net::NetworkDelegate* network_delegate) = 0; 70 net::NetworkDelegate* network_delegate) = 0;
71 71
72 virtual void GetExtraResponseInfo( 72 virtual void GetExtraResponseInfo(
73 bool* was_fetched_via_service_worker, 73 bool* was_fetched_via_service_worker,
74 bool* was_fallback_required_by_service_worker,
74 GURL* original_url_via_service_worker, 75 GURL* original_url_via_service_worker,
75 base::TimeTicks* fetch_start_time, 76 base::TimeTicks* fetch_start_time,
76 base::TimeTicks* fetch_ready_time, 77 base::TimeTicks* fetch_ready_time,
77 base::TimeTicks* fetch_end_time) const = 0; 78 base::TimeTicks* fetch_end_time) const = 0;
78 79
79 protected: 80 protected:
80 ServiceWorkerRequestHandler( 81 ServiceWorkerRequestHandler(
81 base::WeakPtr<ServiceWorkerContextCore> context, 82 base::WeakPtr<ServiceWorkerContextCore> context,
82 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 83 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
83 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 84 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
84 ResourceType resource_type); 85 ResourceType resource_type);
85 86
86 base::WeakPtr<ServiceWorkerContextCore> context_; 87 base::WeakPtr<ServiceWorkerContextCore> context_;
87 base::WeakPtr<ServiceWorkerProviderHost> provider_host_; 88 base::WeakPtr<ServiceWorkerProviderHost> provider_host_;
88 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; 89 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
89 ResourceType resource_type_; 90 ResourceType resource_type_;
90 91
91 private: 92 private:
92 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); 93 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler);
93 }; 94 };
94 95
95 } // namespace content 96 } // namespace content
96 97
97 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 98 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698