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

Side by Side Diff: content/browser/shared_worker/shared_worker_host.cc

Issue 177043003: Implement SharedWorkerServiceImpl::CreateWorker and SharedWorkerInstance and SharedWorkerHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::string and base::StringPiece Created 6 years, 9 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_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
OLDNEW
« no previous file with comments | « content/browser/shared_worker/shared_worker_host.h ('k') | content/browser/shared_worker/shared_worker_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698