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

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

Issue 2154663002: service worker: Relax the BadMessageReceived call in OnSetHostedVersionId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: patch Created 4 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 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const GURL& document_url); 112 const GURL& document_url);
113 void OnGetRegistrations(int thread_id, int request_id, int provider_id); 113 void OnGetRegistrations(int thread_id, int request_id, int provider_id);
114 void OnGetRegistrationForReady(int thread_id, 114 void OnGetRegistrationForReady(int thread_id,
115 int request_id, 115 int request_id,
116 int provider_id); 116 int provider_id);
117 void OnProviderCreated(int provider_id, 117 void OnProviderCreated(int provider_id,
118 int route_id, 118 int route_id,
119 ServiceWorkerProviderType provider_type, 119 ServiceWorkerProviderType provider_type,
120 bool is_parent_frame_secure); 120 bool is_parent_frame_secure);
121 void OnProviderDestroyed(int provider_id); 121 void OnProviderDestroyed(int provider_id);
122 void OnSetHostedVersionId(int provider_id, int64_t version_id); 122 void OnSetHostedVersionId(int provider_id,
123 int64_t version_id,
124 int embedded_worker_id);
123 void OnWorkerReadyForInspection(int embedded_worker_id); 125 void OnWorkerReadyForInspection(int embedded_worker_id);
124 void OnWorkerScriptLoaded(int embedded_worker_id); 126 void OnWorkerScriptLoaded(int embedded_worker_id);
125 void OnWorkerThreadStarted(int embedded_worker_id, 127 void OnWorkerThreadStarted(int embedded_worker_id,
126 int thread_id, 128 int thread_id,
127 int provider_id); 129 int provider_id);
128 void OnWorkerScriptLoadFailed(int embedded_worker_id); 130 void OnWorkerScriptLoadFailed(int embedded_worker_id);
129 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); 131 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success);
130 void OnWorkerStarted(int embedded_worker_id); 132 void OnWorkerStarted(int embedded_worker_id);
131 void OnWorkerStopped(int embedded_worker_id); 133 void OnWorkerStopped(int embedded_worker_id);
132 void OnReportException(int embedded_worker_id, 134 void OnReportException(int embedded_worker_id,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 242
241 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 243 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
242 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; 244 std::vector<std::unique_ptr<IPC::Message>> pending_messages_;
243 245
244 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
245 }; 247 };
246 248
247 } // namespace content 249 } // namespace content
248 250
249 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 251 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698