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 CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 10 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
11 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
13 | 13 |
14 class WebContentsImpl; | |
15 | |
16 namespace content { | 14 namespace content { |
17 | 15 |
18 class RenderProcessHost; | 16 class RenderProcessHost; |
19 class RenderViewHost; | 17 class RenderViewHost; |
| 18 class WebContentsImpl; |
20 | 19 |
21 // Test class for BrowserPluginGuest. | 20 // Test class for BrowserPluginGuest. |
22 // | 21 // |
23 // Provides utilities to wait for certain state/messages in BrowserPluginGuest | 22 // Provides utilities to wait for certain state/messages in BrowserPluginGuest |
24 // to be used in tests. | 23 // to be used in tests. |
25 class TestBrowserPluginGuest : public BrowserPluginGuest { | 24 class TestBrowserPluginGuest : public BrowserPluginGuest { |
26 public: | 25 public: |
27 TestBrowserPluginGuest(int instance_id, | 26 TestBrowserPluginGuest(int instance_id, |
28 WebContentsImpl* web_contents, | 27 WebContentsImpl* web_contents, |
29 RenderViewHost* render_view_host); | 28 RenderViewHost* render_view_host); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 scoped_refptr<MessageLoopRunner> stop_message_loop_runner_; | 104 scoped_refptr<MessageLoopRunner> stop_message_loop_runner_; |
106 scoped_refptr<MessageLoopRunner> damage_buffer_message_loop_runner_; | 105 scoped_refptr<MessageLoopRunner> damage_buffer_message_loop_runner_; |
107 scoped_refptr<MessageLoopRunner> input_message_loop_runner_; | 106 scoped_refptr<MessageLoopRunner> input_message_loop_runner_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); | 108 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); |
110 }; | 109 }; |
111 | 110 |
112 } // namespace content | 111 } // namespace content |
113 | 112 |
114 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ | 113 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |