OLD | NEW |
(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 |
OLD | NEW |