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

Side by Side Diff: content/browser/service_worker/embedded_worker_registry.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_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Creates and removes a new worker instance entry for bookkeeping. 44 // Creates and removes a new worker instance entry for bookkeeping.
45 // This doesn't actually start or stop the worker. 45 // This doesn't actually start or stop the worker.
46 scoped_ptr<EmbeddedWorkerInstance> CreateWorker(); 46 scoped_ptr<EmbeddedWorkerInstance> CreateWorker();
47 47
48 // Called from EmbeddedWorkerInstance, relayed to the child process. 48 // Called from EmbeddedWorkerInstance, relayed to the child process.
49 ServiceWorkerStatusCode StartWorker(int process_id, 49 ServiceWorkerStatusCode StartWorker(int process_id,
50 int embedded_worker_id, 50 int embedded_worker_id,
51 int64 service_worker_version_id, 51 int64 service_worker_version_id,
52 const GURL& scope, 52 const GURL& scope,
53 const GURL& script_url); 53 const GURL& script_url,
54 int* worker_devtools_agent_route_id);
54 ServiceWorkerStatusCode StopWorker(int process_id, 55 ServiceWorkerStatusCode StopWorker(int process_id,
55 int embedded_worker_id); 56 int embedded_worker_id);
56 57
57 // Called back from EmbeddedWorker in the child process, relayed via 58 // Called back from EmbeddedWorker in the child process, relayed via
58 // ServiceWorkerDispatcherHost. 59 // ServiceWorkerDispatcherHost.
59 void OnWorkerStarted(int process_id, int thread_id, int embedded_worker_id); 60 void OnWorkerStarted(int process_id, int thread_id, int embedded_worker_id);
60 void OnWorkerStopped(int process_id, int embedded_worker_id); 61 void OnWorkerStopped(int process_id, int embedded_worker_id);
61 void OnReportException(int embedded_worker_id, 62 void OnReportException(int embedded_worker_id,
62 const base::string16& error_message, 63 const base::string16& error_message,
63 int line_number, 64 int line_number,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 std::map<int, std::set<int> > worker_process_map_; 102 std::map<int, std::set<int> > worker_process_map_;
102 103
103 int next_embedded_worker_id_; 104 int next_embedded_worker_id_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); 106 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry);
106 }; 107 };
107 108
108 } // namespace content 109 } // namespace content
109 110
110 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 111 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698