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

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

Issue 605163002: Service Worker: Remove legacy code for resolving register() to a version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: only resolve on active_version Created 6 years, 2 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 int provider_id, 122 int provider_id,
123 ServiceWorkerRegistration* registration, 123 ServiceWorkerRegistration* registration,
124 ServiceWorkerRegistrationObjectInfo* info, 124 ServiceWorkerRegistrationObjectInfo* info,
125 ServiceWorkerVersionAttributes* attrs); 125 ServiceWorkerVersionAttributes* attrs);
126 126
127 // Callbacks from ServiceWorkerContextCore 127 // Callbacks from ServiceWorkerContextCore
128 void RegistrationComplete(int thread_id, 128 void RegistrationComplete(int thread_id,
129 int provider_id, 129 int provider_id,
130 int request_id, 130 int request_id,
131 ServiceWorkerStatusCode status, 131 ServiceWorkerStatusCode status,
132 int64 registration_id, 132 int64 registration_id);
133 int64 version_id);
134 133
135 void UnregistrationComplete(int thread_id, 134 void UnregistrationComplete(int thread_id,
136 int request_id, 135 int request_id,
137 ServiceWorkerStatusCode status); 136 ServiceWorkerStatusCode status);
138 137
139 void GetRegistrationComplete( 138 void GetRegistrationComplete(
140 int thread_id, 139 int thread_id,
141 int provider_id, 140 int provider_id,
142 int request_id, 141 int request_id,
143 ServiceWorkerStatusCode status, 142 ServiceWorkerStatusCode status,
(...skipping 22 matching lines...) Expand all
166 165
167 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 166 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
168 ScopedVector<IPC::Message> pending_messages_; 167 ScopedVector<IPC::Message> pending_messages_;
169 168
170 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 169 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
171 }; 170 };
172 171
173 } // namespace content 172 } // namespace content
174 173
175 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 174 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698