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

Unified 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, 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
Index: content/browser/shared_worker/shared_worker_host.cc
diff --git a/content/browser/shared_worker/shared_worker_host.cc b/content/browser/shared_worker/shared_worker_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..79944ecaa09ec2e6baae9b77dd3479140aad2029
--- /dev/null
+++ b/content/browser/shared_worker/shared_worker_host.cc
@@ -0,0 +1,30 @@
+// 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_host.h"
+
+#include "content/browser/shared_worker/shared_worker_instance.h"
+#include "content/browser/shared_worker/shared_worker_message_filter.h"
+#include "content/public/browser/browser_thread.h"
+
+namespace content {
+
+SharedWorkerHost::SharedWorkerHost(SharedWorkerInstance* instance)
+ : instance_(instance),
+ worker_route_id_(MSG_ROUTING_NONE) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+}
+
+SharedWorkerHost::~SharedWorkerHost() {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+}
+
+void SharedWorkerHost::Init(SharedWorkerMessageFilter* filter) {
+ DCHECK(worker_route_id_ == MSG_ROUTING_NONE);
+ worker_route_id_ = filter->GetNextRoutingID();
+ // TODO(horo): implement this.
+ NOTIMPLEMENTED();
+}
+
+} // namespace content
« 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