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_host.h" |
| 6 |
| 7 #include "content/browser/shared_worker/shared_worker_instance.h" |
| 8 #include "content/browser/shared_worker/shared_worker_message_filter.h" |
| 9 #include "content/public/browser/browser_thread.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 SharedWorkerHost::SharedWorkerHost(SharedWorkerInstance* instance) |
| 14 : instance_(instance), |
| 15 worker_route_id_(MSG_ROUTING_NONE) { |
| 16 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 17 } |
| 18 |
| 19 SharedWorkerHost::~SharedWorkerHost() { |
| 20 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 21 } |
| 22 |
| 23 void SharedWorkerHost::Init(SharedWorkerMessageFilter* filter) { |
| 24 DCHECK(worker_route_id_ == MSG_ROUTING_NONE); |
| 25 worker_route_id_ = filter->GetNextRoutingID(); |
| 26 // TODO(horo): implement this. |
| 27 NOTIMPLEMENTED(); |
| 28 } |
| 29 |
| 30 } // namespace content |
OLD | NEW |