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

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

Issue 810583002: Teach CrOS's OfflineResourceThrottle about ServiceWorkers so it know longer presents its offline in… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 base::TimeTicks* fetch_ready_time, 93 base::TimeTicks* fetch_ready_time,
94 base::TimeTicks* fetch_end_time) const = 0; 94 base::TimeTicks* fetch_end_time) const = 0;
95 95
96 // Methods to support cross site navigations. 96 // Methods to support cross site navigations.
97 void PrepareForCrossSiteTransfer(int old_process_id); 97 void PrepareForCrossSiteTransfer(int old_process_id);
98 void CompleteCrossSiteTransfer(int new_process_id, 98 void CompleteCrossSiteTransfer(int new_process_id,
99 int new_provider_id); 99 int new_provider_id);
100 void MaybeCompleteCrossSiteTransferInOldProcess( 100 void MaybeCompleteCrossSiteTransferInOldProcess(
101 int old_process_id); 101 int old_process_id);
102 102
103 ServiceWorkerContextCore* context() const { return context_.get(); }
104
103 protected: 105 protected:
104 ServiceWorkerRequestHandler( 106 ServiceWorkerRequestHandler(
105 base::WeakPtr<ServiceWorkerContextCore> context, 107 base::WeakPtr<ServiceWorkerContextCore> context,
106 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 108 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
107 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, 109 base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
108 ResourceType resource_type); 110 ResourceType resource_type);
109 111
110 base::WeakPtr<ServiceWorkerContextCore> context_; 112 base::WeakPtr<ServiceWorkerContextCore> context_;
111 base::WeakPtr<ServiceWorkerProviderHost> provider_host_; 113 base::WeakPtr<ServiceWorkerProviderHost> provider_host_;
112 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; 114 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
113 ResourceType resource_type_; 115 ResourceType resource_type_;
114 116
115 private: 117 private:
116 scoped_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; 118 scoped_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_;
117 int old_process_id_; 119 int old_process_id_;
118 int old_provider_id_; 120 int old_provider_id_;
119 121
120 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); 122 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler);
121 }; 123 };
122 124
123 } // namespace content 125 } // namespace content
124 126
125 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 127 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_context_wrapper.cc ('k') | content/public/browser/service_worker_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698