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

Side by Side Diff: content/child/service_worker/service_worker_network_provider.h

Issue 2959903002: Revert of Implement dumb URLLoader{Factory} for ServiceWorker script loading (Closed)
Patch Set: pull master and rebase Created 3 years, 5 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // This is for controllers. 65 // This is for controllers.
66 explicit ServiceWorkerNetworkProvider( 66 explicit ServiceWorkerNetworkProvider(
67 mojom::ServiceWorkerProviderInfoForStartWorkerPtr info); 67 mojom::ServiceWorkerProviderInfoForStartWorkerPtr info);
68 68
69 ServiceWorkerNetworkProvider(); 69 ServiceWorkerNetworkProvider();
70 ~ServiceWorkerNetworkProvider(); 70 ~ServiceWorkerNetworkProvider();
71 71
72 int provider_id() const { return provider_id_; } 72 int provider_id() const { return provider_id_; }
73 ServiceWorkerProviderContext* context() const { return context_.get(); } 73 ServiceWorkerProviderContext* context() const { return context_.get(); }
74 74
75 mojom::URLLoaderFactory* script_loader_factory() {
76 return script_loader_factory_.get();
77 }
78
79 bool IsControlledByServiceWorker() const; 75 bool IsControlledByServiceWorker() const;
80 76
81 private: 77 private:
82 const int provider_id_; 78 const int provider_id_;
83 scoped_refptr<ServiceWorkerProviderContext> context_; 79 scoped_refptr<ServiceWorkerProviderContext> context_;
84 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; 80 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_;
85 mojom::ServiceWorkerProviderHostAssociatedPtr provider_host_; 81 mojom::ServiceWorkerProviderHostAssociatedPtr provider_host_;
86 mojom::URLLoaderFactoryAssociatedPtr script_loader_factory_;
87
88 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); 82 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider);
89 }; 83 };
90 84
91 } // namespace content 85 } // namespace content
92 86
93 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 87 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/child/service_worker/service_worker_network_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698