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

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

Issue 2653493009: Add two interfaces for ServiceWorkerProviderContext/ProviderHost (Closed)
Patch Set: Skip unittest for CrossSiteTransfer when PlzNavigate Created 3 years, 6 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // running service worker script. The version_id indicates which 71 // running service worker script. The version_id indicates which
72 // ServiceWorkerVersion should be used. 72 // ServiceWorkerVersion should be used.
73 void SetServiceWorkerVersionId(int64_t version_id, int embedded_worker_id); 73 void SetServiceWorkerVersionId(int64_t version_id, int embedded_worker_id);
74 74
75 bool IsControlledByServiceWorker() const; 75 bool IsControlledByServiceWorker() const;
76 76
77 private: 77 private:
78 const int provider_id_; 78 const int provider_id_;
79 scoped_refptr<ServiceWorkerProviderContext> context_; 79 scoped_refptr<ServiceWorkerProviderContext> context_;
80 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_; 80 mojom::ServiceWorkerDispatcherHostAssociatedPtr dispatcher_host_;
81 mojom::ServiceWorkerProviderHostAssociatedPtr provider_host_;
81 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); 82 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider);
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 87 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698