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/child/webmessageportchannel_impl.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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 | « content/child/web_url_loader_impl.h ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_
6 #define CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ 6 #define CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "ipc/ipc_listener.h" 16 #include "ipc/ipc_listener.h"
17 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 17 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
18 18
19 namespace base { 19 namespace base {
20 class SingleThreadTaskRunner; 20 class SingleThreadTaskRunner;
21 } 21 }
22 22
23 namespace content { 23 namespace content {
24 class ChildThread;
25 24
26 // This is thread safe. 25 // This is thread safe.
27 class WebMessagePortChannelImpl 26 class WebMessagePortChannelImpl
28 : public blink::WebMessagePortChannel, 27 : public blink::WebMessagePortChannel,
29 public IPC::Listener, 28 public IPC::Listener,
30 public base::RefCountedThreadSafe<WebMessagePortChannelImpl> { 29 public base::RefCountedThreadSafe<WebMessagePortChannelImpl> {
31 public: 30 public:
32 explicit WebMessagePortChannelImpl( 31 explicit WebMessagePortChannelImpl(
33 const scoped_refptr<base::SingleThreadTaskRunner>& 32 const scoped_refptr<base::SingleThreadTaskRunner>&
34 main_thread_task_runner); 33 main_thread_task_runner);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int route_id_; // The routing id for this object. 120 int route_id_; // The routing id for this object.
122 int message_port_id_; // A globally unique identifier for this message port. 121 int message_port_id_; // A globally unique identifier for this message port.
123 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 122 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
124 123
125 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); 124 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl);
126 }; 125 };
127 126
128 } // namespace content 127 } // namespace content
129 128
130 #endif // CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ 129 #endif // CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.h ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698