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

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

Issue 894973003: ServiceWorker: Make "ready" fetches registration from browser process(2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: #13 Created 5 years, 9 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 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 <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const GURL& pattern, 84 const GURL& pattern,
85 const GURL& script_url); 85 const GURL& script_url);
86 void OnUnregisterServiceWorker(int thread_id, 86 void OnUnregisterServiceWorker(int thread_id,
87 int request_id, 87 int request_id,
88 int provider_id, 88 int provider_id,
89 const GURL& pattern); 89 const GURL& pattern);
90 void OnGetRegistration(int thread_id, 90 void OnGetRegistration(int thread_id,
91 int request_id, 91 int request_id,
92 int provider_id, 92 int provider_id,
93 const GURL& document_url); 93 const GURL& document_url);
94 void OnGetRegistrationForReady(int thread_id,
95 int request_id,
96 int provider_id);
94 void OnProviderCreated(int provider_id, 97 void OnProviderCreated(int provider_id,
95 int render_frame_id, 98 int render_frame_id,
96 ServiceWorkerProviderType provider_type); 99 ServiceWorkerProviderType provider_type);
97 void OnProviderDestroyed(int provider_id); 100 void OnProviderDestroyed(int provider_id);
98 void OnSetHostedVersionId(int provider_id, int64 version_id); 101 void OnSetHostedVersionId(int provider_id, int64 version_id);
99 void OnWorkerReadyForInspection(int embedded_worker_id); 102 void OnWorkerReadyForInspection(int embedded_worker_id);
100 void OnWorkerScriptLoaded(int embedded_worker_id, 103 void OnWorkerScriptLoaded(int embedded_worker_id,
101 int thread_id, 104 int thread_id,
102 int provider_id); 105 int provider_id);
103 void OnWorkerScriptLoadFailed(int embedded_worker_id); 106 void OnWorkerScriptLoadFailed(int embedded_worker_id);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 int request_id, 151 int request_id,
149 ServiceWorkerStatusCode status); 152 ServiceWorkerStatusCode status);
150 153
151 void GetRegistrationComplete( 154 void GetRegistrationComplete(
152 int thread_id, 155 int thread_id,
153 int provider_id, 156 int provider_id,
154 int request_id, 157 int request_id,
155 ServiceWorkerStatusCode status, 158 ServiceWorkerStatusCode status,
156 const scoped_refptr<ServiceWorkerRegistration>& registration); 159 const scoped_refptr<ServiceWorkerRegistration>& registration);
157 160
161 void GetRegistrationForReadyComplete(
162 int thread_id,
163 int request_id,
164 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
165 ServiceWorkerRegistration* registration);
166
158 void SendRegistrationError(int thread_id, 167 void SendRegistrationError(int thread_id,
159 int request_id, 168 int request_id,
160 ServiceWorkerStatusCode status, 169 ServiceWorkerStatusCode status,
161 const std::string& status_message); 170 const std::string& status_message);
162 171
163 void SendUnregistrationError(int thread_id, 172 void SendUnregistrationError(int thread_id,
164 int request_id, 173 int request_id,
165 ServiceWorkerStatusCode status); 174 ServiceWorkerStatusCode status);
166 175
167 void SendGetRegistrationError(int thread_id, 176 void SendGetRegistrationError(int thread_id,
(...skipping 12 matching lines...) Expand all
180 189
181 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 190 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
182 ScopedVector<IPC::Message> pending_messages_; 191 ScopedVector<IPC::Message> pending_messages_;
183 192
184 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 193 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
185 }; 194 };
186 195
187 } // namespace content 196 } // namespace content
188 197
189 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 198 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698