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

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

Issue 964353002: ServiceWorkerVersion: remove unused SendMessage method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_version.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_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Schedules an update to be run 'soon'. 159 // Schedules an update to be run 'soon'.
160 void ScheduleUpdate(); 160 void ScheduleUpdate();
161 161
162 // If an update is scheduled but not yet started, this resets the timer 162 // If an update is scheduled but not yet started, this resets the timer
163 // delaying the start time by a 'small' amount. 163 // delaying the start time by a 'small' amount.
164 void DeferScheduledUpdate(); 164 void DeferScheduledUpdate();
165 165
166 // Starts an update now. 166 // Starts an update now.
167 void StartUpdate(); 167 void StartUpdate();
168 168
169 // Sends an IPC message to the worker.
170 // If the worker is not running this first tries to start it by
171 // calling StartWorker internally.
172 // |callback| can be null if the sender does not need to know if the
173 // message is successfully sent or not.
174 void SendMessage(const IPC::Message& message, const StatusCallback& callback);
175
176 // Sends a message event to the associated embedded worker. 169 // Sends a message event to the associated embedded worker.
177 void DispatchMessageEvent( 170 void DispatchMessageEvent(
178 const base::string16& message, 171 const base::string16& message,
179 const std::vector<TransferredMessagePort>& sent_message_ports, 172 const std::vector<TransferredMessagePort>& sent_message_ports,
180 const StatusCallback& callback); 173 const StatusCallback& callback);
181 174
182 // Sends install event to the associated embedded worker and asynchronously 175 // Sends install event to the associated embedded worker and asynchronously
183 // calls |callback| when it errors out or it gets a response from the worker 176 // calls |callback| when it errors out or it gets a response from the worker
184 // to notify install completion. 177 // to notify install completion.
185 // |active_version_id| must be a valid positive ID 178 // |active_version_id| must be a valid positive ID
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; 460 scoped_ptr<net::HttpResponseInfo> main_script_http_info_;
468 461
469 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 462 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
470 463
471 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 464 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
472 }; 465 };
473 466
474 } // namespace content 467 } // namespace content
475 468
476 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 469 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698