| Index: content/browser/service_worker/service_worker_context_watcher.cc
|
| diff --git a/content/browser/service_worker/service_worker_context_watcher.cc b/content/browser/service_worker/service_worker_context_watcher.cc
|
| index 0bea44dd403676cc73cb446bed8a9fcce7664c37..03ed3b7c9eb2512bf6b02078bebdb5e1bd8778eb 100644
|
| --- a/content/browser/service_worker/service_worker_context_watcher.cc
|
| +++ b/content/browser/service_worker/service_worker_context_watcher.cc
|
| @@ -238,6 +238,27 @@ void ServiceWorkerContextWatcher::OnReportConsoleMessage(
|
| message.source_url)));
|
| }
|
|
|
| +void ServiceWorkerContextWatcher::OnControlleeAdded(
|
| + int64 version_id,
|
| + const std::string& uuid,
|
| + int process_id,
|
| + int frame_id,
|
| + int shared_worker_route_id) {
|
| + ServiceWorkerVersionInfo* version = version_info_map_.get(version_id);
|
| + DCHECK(version);
|
| + version->clients[uuid] = ServiceWorkerVersionInfo::ClientInfo(
|
| + process_id, frame_id, shared_worker_route_id);
|
| + SendVersionInfo(*version);
|
| +}
|
| +
|
| +void ServiceWorkerContextWatcher::OnControlleeRemoved(int64 version_id,
|
| + const std::string& uuid) {
|
| + ServiceWorkerVersionInfo* version = version_info_map_.get(version_id);
|
| + DCHECK(version);
|
| + version->clients.erase(uuid);
|
| + SendVersionInfo(*version);
|
| +}
|
| +
|
| void ServiceWorkerContextWatcher::OnRegistrationStored(int64 registration_id,
|
| const GURL& pattern) {
|
| SendRegistrationInfo(registration_id, pattern,
|
|
|