OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ | 5 #ifndef CONTENT_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ |
6 #define CONTENT_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ | 6 #define CONTENT_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ |
7 #pragma once | |
8 | 7 |
9 #include <queue> | 8 #include <queue> |
10 #include <vector> | 9 #include <vector> |
11 | 10 |
12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
14 #include "base/string16.h" | 13 #include "base/string16.h" |
15 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
16 #include "ipc/ipc_listener.h" | 15 #include "ipc/ipc_listener.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel
.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel
.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 WebKit::WebMessagePortChannelClient* client_; | 68 WebKit::WebMessagePortChannelClient* client_; |
70 base::Lock lock_; // Locks access to above. | 69 base::Lock lock_; // Locks access to above. |
71 | 70 |
72 int route_id_; // The routing id for this object. | 71 int route_id_; // The routing id for this object. |
73 int message_port_id_; // A globally unique identifier for this message port. | 72 int message_port_id_; // A globally unique identifier for this message port. |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); | 74 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); |
76 }; | 75 }; |
77 | 76 |
78 #endif // CONTENT_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ | 77 #endif // CONTENT_COMMON_WEBMESSAGEPORTCHANNEL_IMPL_H_ |
OLD | NEW |