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

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

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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
7
8 #include <vector>
9
10 #include "base/memory/scoped_ptr.h"
11
12 namespace content {
13 class SharedWorkerMessageFilter;
14 class SharedWorkerInstance;
15
16 // The SharedWorkerHost is the interface that represents the browser side of
17 // the browser <-> worker communication channel.
18 class SharedWorkerHost {
19 public:
20 explicit SharedWorkerHost(SharedWorkerInstance* instance);
21 ~SharedWorkerHost();
22
23 // Starts the SharedWorker in the renderer process which is associated with
24 // |filter|.
25 void Init(SharedWorkerMessageFilter* filter);
26
27 SharedWorkerInstance* instance() { return instance_.get(); }
28 int worker_route_id() const { return worker_route_id_; }
29
30 private:
31 scoped_ptr<SharedWorkerInstance> instance_;
32 int worker_route_id_;
33
34 DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost);
35 };
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698