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

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

Issue 177043003: Implement SharedWorkerServiceImpl::CreateWorker and SharedWorkerInstance and SharedWorkerHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::string and base::StringPiece Created 6 years, 10 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 4d5d8a0258841a627fa4e2d36d8ce25282c88937..9b4350e472588fbeb85e17bbe63c1717a576bb88 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.h
+++ b/content/browser/shared_worker/shared_worker_service_impl.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_
#include "base/compiler_specific.h"
+#include "base/memory/scoped_vector.h"
#include "base/memory/singleton.h"
#include "base/observer_list.h"
#include "content/public/browser/notification_observer.h"
@@ -20,6 +21,8 @@ class Message;
namespace content {
+class SharedWorkerInstance;
+class SharedWorkerHost;
class SharedWorkerMessageFilter;
class ResourceContext;
class WorkerServiceObserver;
@@ -88,6 +91,13 @@ class CONTENT_EXPORT SharedWorkerServiceImpl
SharedWorkerServiceImpl();
virtual ~SharedWorkerServiceImpl();
+ SharedWorkerInstance* FindSharedWorkerInstance(
+ const GURL& url,
+ const base::string16& name,
+ const WorkerStoragePartition& worker_partition,
+ ResourceContext* resource_context);
+
+ ScopedVector<SharedWorkerHost> worker_hosts_;
ObserverList<WorkerServiceObserver> observers_;
DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl);

Powered by Google App Engine
This is Rietveld 408576698