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

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

Issue 140333011: Add some empty classes for the embedded SharedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove shared_worker_host shared_worker_instance shared_worker_message_filter 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
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/shared_worker/shared_worker_service_impl.cc
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ada002fc9e54ece0ed10ac92973051c059ece6de
--- /dev/null
+++ b/content/browser/shared_worker/shared_worker_service_impl.cc
@@ -0,0 +1,50 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/shared_worker/shared_worker_service_impl.h"
+
+#include "content/common/worker_messages.h"
+#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/worker_service_observer.h"
+
+namespace content {
+
+SharedWorkerServiceImpl* SharedWorkerServiceImpl::GetInstance() {
+ // TODO(horo): implement this.
+ NOTIMPLEMENTED();
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ return Singleton<SharedWorkerServiceImpl>::get();
+}
+
+SharedWorkerServiceImpl::SharedWorkerServiceImpl() {
+ // TODO(horo): implement this.
+}
+
+SharedWorkerServiceImpl::~SharedWorkerServiceImpl() {
+ // TODO(horo): implement this.
+}
+
+
+bool SharedWorkerServiceImpl::TerminateWorker(int process_id, int route_id) {
+ // TODO(horo): implement this.
+ return false;
+}
+
+std::vector<WorkerService::WorkerInfo> SharedWorkerServiceImpl::GetWorkers() {
+ // TODO(horo): implement this.
+ std::vector<WorkerService::WorkerInfo> results;
+ return results;
+}
+
+void SharedWorkerServiceImpl::AddObserver(WorkerServiceObserver* observer) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ observers_.AddObserver(observer);
+}
+
+void SharedWorkerServiceImpl::RemoveObserver(WorkerServiceObserver* observer) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ observers_.RemoveObserver(observer);
+}
+
+} // namespace content
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698