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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/shared_worker/shared_worker_service_impl.h"
6
7 #include "content/common/worker_messages.h"
8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/worker_service_observer.h"
10
11 namespace content {
12
13 SharedWorkerServiceImpl* SharedWorkerServiceImpl::GetInstance() {
14 // TODO(horo): implement this.
15 NOTIMPLEMENTED();
16 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
17 return Singleton<SharedWorkerServiceImpl>::get();
18 }
19
20 SharedWorkerServiceImpl::SharedWorkerServiceImpl() {
21 // TODO(horo): implement this.
22 }
23
24 SharedWorkerServiceImpl::~SharedWorkerServiceImpl() {
25 // TODO(horo): implement this.
26 }
27
28
29 bool SharedWorkerServiceImpl::TerminateWorker(int process_id, int route_id) {
30 // TODO(horo): implement this.
31 return false;
32 }
33
34 std::vector<WorkerService::WorkerInfo> SharedWorkerServiceImpl::GetWorkers() {
35 // TODO(horo): implement this.
36 std::vector<WorkerService::WorkerInfo> results;
37 return results;
38 }
39
40 void SharedWorkerServiceImpl::AddObserver(WorkerServiceObserver* observer) {
41 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
42 observers_.AddObserver(observer);
43 }
44
45 void SharedWorkerServiceImpl::RemoveObserver(WorkerServiceObserver* observer) {
46 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
47 observers_.RemoveObserver(observer);
48 }
49
50 } // namespace content
OLDNEW
« 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