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

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

Issue 516823003: ServiceWorker: Change the return value of ServiceWorkerRegistration::unregister to boolean (2/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.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 <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 int64 version_id); 115 int64 version_id);
116 116
117 void UnregistrationComplete(int thread_id, 117 void UnregistrationComplete(int thread_id,
118 int request_id, 118 int request_id,
119 ServiceWorkerStatusCode status); 119 ServiceWorkerStatusCode status);
120 120
121 void SendRegistrationError(int thread_id, 121 void SendRegistrationError(int thread_id,
122 int request_id, 122 int request_id,
123 ServiceWorkerStatusCode status); 123 ServiceWorkerStatusCode status);
124 124
125 void SendUnregistrationError(int thread_id,
126 int request_id,
127 ServiceWorkerStatusCode status);
128
125 ServiceWorkerContextCore* GetContext(); 129 ServiceWorkerContextCore* GetContext();
126 130
127 int render_process_id_; 131 int render_process_id_;
128 MessagePortMessageFilter* const message_port_message_filter_; 132 MessagePortMessageFilter* const message_port_message_filter_;
129 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_; 133 scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_;
130 134
131 IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_; 135 IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_;
132 IDMap<ServiceWorkerRegistrationHandle, IDMapOwnPointer> registration_handles_; 136 IDMap<ServiceWorkerRegistrationHandle, IDMapOwnPointer> registration_handles_;
133 137
134 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 138 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
135 ScopedVector<IPC::Message> pending_messages_; 139 ScopedVector<IPC::Message> pending_messages_;
136 140
137 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 141 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
138 }; 142 };
139 143
140 } // namespace content 144 } // namespace content
141 145
142 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 146 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698