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

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

Issue 2527883002: ServiceWorker: mojofy ipcs sent from SWNetworkProvider (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | content/child/service_worker/service_worker_network_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Called when mojom::ServiceWorkerDispatcherHostPtr is created on the 99 // Called when mojom::ServiceWorkerDispatcherHostPtr is created on the
100 // renderer-side. 100 // renderer-side.
101 void AddMojoBinding(mojo::ScopedInterfaceEndpointHandle handle); 101 void AddMojoBinding(mojo::ScopedInterfaceEndpointHandle handle);
102 102
103 // mojom::ServiceWorkerDispatcherHost implementation 103 // mojom::ServiceWorkerDispatcherHost implementation
104 void OnProviderCreated(int provider_id, 104 void OnProviderCreated(int provider_id,
105 int route_id, 105 int route_id,
106 ServiceWorkerProviderType provider_type, 106 ServiceWorkerProviderType provider_type,
107 bool is_parent_frame_secure) override; 107 bool is_parent_frame_secure) override;
108 void OnProviderDestroyed(int provider_id) override;
109 void OnSetHostedVersionId(int provider_id,
110 int64_t version_id,
111 int embedded_worker_id) override;
108 112
109 // IPC Message handlers 113 // IPC Message handlers
110 void OnRegisterServiceWorker(int thread_id, 114 void OnRegisterServiceWorker(int thread_id,
111 int request_id, 115 int request_id,
112 int provider_id, 116 int provider_id,
113 const GURL& pattern, 117 const GURL& pattern,
114 const GURL& script_url); 118 const GURL& script_url);
115 void OnUpdateServiceWorker(int thread_id, 119 void OnUpdateServiceWorker(int thread_id,
116 int request_id, 120 int request_id,
117 int provider_id, 121 int provider_id,
(...skipping 17 matching lines...) Expand all
135 bool enable); 139 bool enable);
136 void OnGetNavigationPreloadState(int thread_id, 140 void OnGetNavigationPreloadState(int thread_id,
137 int request_id, 141 int request_id,
138 int provider_id, 142 int provider_id,
139 int64_t registration_id); 143 int64_t registration_id);
140 void OnSetNavigationPreloadHeader(int thread_id, 144 void OnSetNavigationPreloadHeader(int thread_id,
141 int request_id, 145 int request_id,
142 int provider_id, 146 int provider_id,
143 int64_t registration_id, 147 int64_t registration_id,
144 const std::string& value); 148 const std::string& value);
145 void OnProviderDestroyed(int provider_id);
146 void OnSetHostedVersionId(int provider_id,
147 int64_t version_id,
148 int embedded_worker_id);
149 void OnWorkerReadyForInspection(int embedded_worker_id); 149 void OnWorkerReadyForInspection(int embedded_worker_id);
150 void OnWorkerScriptLoaded(int embedded_worker_id); 150 void OnWorkerScriptLoaded(int embedded_worker_id);
151 void OnWorkerThreadStarted(int embedded_worker_id, 151 void OnWorkerThreadStarted(int embedded_worker_id,
152 int thread_id, 152 int thread_id,
153 int provider_id); 153 int provider_id);
154 void OnWorkerScriptLoadFailed(int embedded_worker_id); 154 void OnWorkerScriptLoadFailed(int embedded_worker_id);
155 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); 155 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success);
156 void OnWorkerStarted(int embedded_worker_id); 156 void OnWorkerStarted(int embedded_worker_id);
157 void OnWorkerStopped(int embedded_worker_id); 157 void OnWorkerStopped(int embedded_worker_id);
158 void OnReportException(int embedded_worker_id, 158 void OnReportException(int embedded_worker_id,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_; 276 mojo::AssociatedBindingSet<mojom::ServiceWorkerDispatcherHost> bindings_;
277 277
278 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_; 278 base::WeakPtrFactory<ServiceWorkerDispatcherHost> weak_factory_;
279 279
280 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 280 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
281 }; 281 };
282 282
283 } // namespace content 283 } // namespace content
284 284
285 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 285 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/service_worker/service_worker_network_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698