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

Unified Diff: content/browser/shared_worker/shared_worker_service_impl.h

Issue 223123003: Make DevTools support for the embedded SharedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed version Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/shared_worker/shared_worker_service_impl.h
diff --git a/content/browser/shared_worker/shared_worker_service_impl.h b/content/browser/shared_worker/shared_worker_service_impl.h
index 70887857acadac0c5cdae01011da6f214a872dda..7abf4528d0ece8dc1bc195aeb64fe404630a73fc 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.h
+++ b/content/browser/shared_worker/shared_worker_service_impl.h
@@ -92,12 +92,21 @@ class CONTENT_EXPORT SharedWorkerServiceImpl
// RenderProcessHostImpl on UI thread if necessary.
void CheckWorkerDependency();
+ void WorkerCreatedResultCallback(int worker_process_id,
+ int worker_route_id,
+ bool pause_on_start);
+ void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id);
+
private:
friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>;
friend class SharedWorkerServiceImplTest;
typedef void (*UpdateWorkerDependencyFunc)(const std::vector<int>&,
const std::vector<int>&);
+ // Pair of render_process_id and worker_route_id.
+ typedef std::pair<int, int> ProcessRouteIdPair;
+ typedef base::ScopedPtrHashMap<ProcessRouteIdPair, SharedWorkerHost>
+ WorkerHostMap;
SharedWorkerServiceImpl();
virtual ~SharedWorkerServiceImpl();
@@ -108,7 +117,8 @@ class CONTENT_EXPORT SharedWorkerServiceImpl
SharedWorkerMessageFilter* filter,
int worker_route_id);
- SharedWorkerHost* FindSharedWorkerHost(
+ static SharedWorkerHost* FindSharedWorkerHost(
+ const WorkerHostMap& hosts,
const GURL& url,
const base::string16& name,
const WorkerStoragePartition& worker_partition,
@@ -124,11 +134,8 @@ class CONTENT_EXPORT SharedWorkerServiceImpl
std::set<int> last_worker_depended_renderers_;
UpdateWorkerDependencyFunc update_worker_dependency_;
- // Pair of render_process_id and worker_route_id.
- typedef std::pair<int, int> ProcessRouteIdPair;
- typedef base::ScopedPtrHashMap<ProcessRouteIdPair,
- SharedWorkerHost> WorkerHostMap;
WorkerHostMap worker_hosts_;
+ WorkerHostMap pending_worker_hosts_;
ObserverList<WorkerServiceObserver> observers_;
« no previous file with comments | « content/browser/shared_worker/shared_worker_instance.cc ('k') | content/browser/shared_worker/shared_worker_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698