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

Side by Side Diff: content/browser/service_worker/embedded_worker_registry.cc

Issue 127583002: Separate EmbeddedWorker messages into another file to use different msg class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 years, 11 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 | Annotate | Revision Log
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 #include "content/browser/service_worker/embedded_worker_registry.h" 5 #include "content/browser/service_worker/embedded_worker_registry.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "content/browser/service_worker/embedded_worker_instance.h" 8 #include "content/browser/service_worker/embedded_worker_instance.h"
9 #include "content/browser/service_worker/service_worker_context_core.h" 9 #include "content/browser/service_worker/service_worker_context_core.h"
10 #include "content/common/service_worker_messages.h" 10 #include "content/common/service_worker/embedded_worker_messages.h"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 EmbeddedWorkerRegistry::EmbeddedWorkerRegistry( 16 EmbeddedWorkerRegistry::EmbeddedWorkerRegistry(
17 base::WeakPtr<ServiceWorkerContextCore> context) 17 base::WeakPtr<ServiceWorkerContextCore> context)
18 : context_(context), 18 : context_(context),
19 next_embedded_worker_id_(0) {} 19 next_embedded_worker_id_(0) {}
20 20
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 void EmbeddedWorkerRegistry::RemoveWorker(int process_id, 98 void EmbeddedWorkerRegistry::RemoveWorker(int process_id,
99 int embedded_worker_id) { 99 int embedded_worker_id) {
100 DCHECK(ContainsKey(worker_map_, embedded_worker_id)); 100 DCHECK(ContainsKey(worker_map_, embedded_worker_id));
101 worker_map_.erase(embedded_worker_id); 101 worker_map_.erase(embedded_worker_id);
102 worker_process_map_.erase(process_id); 102 worker_process_map_.erase(process_id);
103 } 103 }
104 104
105 } // namespace content 105 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698