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

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

Issue 166873008: Revert 251334 "Add SharedWorkerMessageFilter for the embedded Sh..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1845/src/
Patch Set: 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
===================================================================
--- content/browser/shared_worker/shared_worker_service_impl.h (revision 251800)
+++ content/browser/shared_worker/shared_worker_service_impl.h (working copy)
@@ -12,20 +12,11 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/worker_service.h"
-struct ViewHostMsg_CreateWorker_Params;
-
-namespace IPC {
-class Message;
-}
-
namespace content {
-class SharedWorkerMessageFilter;
-class ResourceContext;
class WorkerServiceObserver;
-class WorkerStoragePartition;
-// If "enable-embedded-shared-worker" is set this class will be used instead of
+// If "enable-embedded-shared-worker" is set this class will be used in stead of
// WorkerServiceImpl.
// TODO(horo): implement this class.
class CONTENT_EXPORT SharedWorkerServiceImpl
@@ -40,48 +31,6 @@
virtual void AddObserver(WorkerServiceObserver* observer) OVERRIDE;
virtual void RemoveObserver(WorkerServiceObserver* observer) OVERRIDE;
- // These methods correspond to worker related IPCs.
- void CreateWorker(const ViewHostMsg_CreateWorker_Params& params,
- int route_id,
- SharedWorkerMessageFilter* filter,
- ResourceContext* resource_context,
- const WorkerStoragePartition& worker_partition,
- bool* url_mismatch);
- void ForwardToWorker(const IPC::Message& message,
- SharedWorkerMessageFilter* filter);
- void DocumentDetached(unsigned long long document_id,
- SharedWorkerMessageFilter* filter);
- void WorkerContextClosed(int worker_route_id,
- SharedWorkerMessageFilter* filter);
- void WorkerContextDestroyed(int worker_route_id,
- SharedWorkerMessageFilter* filter);
- void WorkerScriptLoaded(int worker_route_id,
- SharedWorkerMessageFilter* filter);
- void WorkerScriptLoadFailed(int worker_route_id,
- SharedWorkerMessageFilter* filter);
- void WorkerConnected(int message_port_id,
- int worker_route_id,
- SharedWorkerMessageFilter* filter);
- void AllowDatabase(int worker_route_id,
- const GURL& url,
- const base::string16& name,
- const base::string16& display_name,
- unsigned long estimated_size,
- bool* result,
- SharedWorkerMessageFilter* filter);
- void AllowFileSystem(int worker_route_id,
- const GURL& url,
- bool* result,
- SharedWorkerMessageFilter* filter);
- void AllowIndexedDB(int worker_route_id,
- const GURL& url,
- const base::string16& name,
- bool* result,
- SharedWorkerMessageFilter* filter);
-
- void OnSharedWorkerMessageFilterClosing(
- SharedWorkerMessageFilter* filter);
-
private:
friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>;

Powered by Google App Engine
This is Rietveld 408576698