| OLD | NEW |
| 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 WEBKIT_SUPPORT_TEST_WEBMESSAGEPORTCHANNEL_H_ | 5 #ifndef WEBKIT_SUPPORT_TEST_WEBMESSAGEPORTCHANNEL_H_ |
| 6 #define WEBKIT_SUPPORT_TEST_WEBMESSAGEPORTCHANNEL_H_ | 6 #define WEBKIT_SUPPORT_TEST_WEBMESSAGEPORTCHANNEL_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebMessagePortChann
el.h" | 12 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" |
| 13 | 13 |
| 14 namespace WebKit { | 14 namespace WebKit { |
| 15 class WebString; | 15 class WebString; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class TestWebMessagePortChannel | 18 class TestWebMessagePortChannel |
| 19 : public WebKit::WebMessagePortChannel, | 19 : public WebKit::WebMessagePortChannel, |
| 20 public base::RefCounted<TestWebMessagePortChannel> { | 20 public base::RefCounted<TestWebMessagePortChannel> { |
| 21 public: | 21 public: |
| 22 TestWebMessagePortChannel(); | 22 TestWebMessagePortChannel(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 43 void queueMessage(Message*); | 43 void queueMessage(Message*); |
| 44 | 44 |
| 45 WebKit::WebMessagePortChannelClient* client_; | 45 WebKit::WebMessagePortChannelClient* client_; |
| 46 scoped_refptr<TestWebMessagePortChannel> remote_; | 46 scoped_refptr<TestWebMessagePortChannel> remote_; |
| 47 std::queue<Message*> message_queue_; | 47 std::queue<Message*> message_queue_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(TestWebMessagePortChannel); | 49 DISALLOW_COPY_AND_ASSIGN(TestWebMessagePortChannel); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif | 52 #endif |
| OLD | NEW |