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

Side by Side Diff: content/renderer/service_worker/embedded_worker_dispatcher.h

Issue 252633003: Introduce worker_devtools_agent_route_id for EmbeddedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated kinuko's comment Created 6 years, 7 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_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 18 matching lines...) Expand all
29 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 29 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
30 30
31 void WorkerContextDestroyed(int embedded_worker_id); 31 void WorkerContextDestroyed(int embedded_worker_id);
32 32
33 private: 33 private:
34 class WorkerWrapper; 34 class WorkerWrapper;
35 35
36 void OnStartWorker(int embedded_worker_id, 36 void OnStartWorker(int embedded_worker_id,
37 int64 service_worker_version_id, 37 int64 service_worker_version_id,
38 const GURL& service_worker_scope, 38 const GURL& service_worker_scope,
39 const GURL& script_url); 39 const GURL& script_url,
40 int worker_devtools_agent_route_id);
40 void OnStopWorker(int embedded_worker_id); 41 void OnStopWorker(int embedded_worker_id);
41 42
42 IDMap<WorkerWrapper, IDMapOwnPointer> workers_; 43 IDMap<WorkerWrapper, IDMapOwnPointer> workers_;
43 base::WeakPtrFactory<EmbeddedWorkerDispatcher> weak_factory_; 44 base::WeakPtrFactory<EmbeddedWorkerDispatcher> weak_factory_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher); 46 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDispatcher);
46 }; 47 };
47 48
48 } // namespace content 49 } // namespace content
49 50
50 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_ 51 #endif // CONTENT_CHILD_SERVICE_WORKER_EMBEDDED_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698