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_EMBEDDER_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_EMBEDDER_H_ |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_EMBEDDER_H_ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_EMBEDDER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/browser/browser_plugin/browser_plugin_embedder.h" | 9 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
10 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
11 | 11 |
12 class WebContentsImpl; | |
13 | |
14 namespace content { | 12 namespace content { |
15 | 13 |
16 class BrowserPluginGuest; | 14 class BrowserPluginGuest; |
17 class RenderViewHost; | 15 class RenderViewHost; |
| 16 class WebContentsImpl; |
18 | 17 |
19 // Test class for BrowserPluginEmbedder. | 18 // Test class for BrowserPluginEmbedder. |
20 // | 19 // |
21 // Provides utilities to wait for certain state/messages in | 20 // Provides utilities to wait for certain state/messages in |
22 // BrowserPluginEmbedder to be used in tests. | 21 // BrowserPluginEmbedder to be used in tests. |
23 class TestBrowserPluginEmbedder : public BrowserPluginEmbedder { | 22 class TestBrowserPluginEmbedder : public BrowserPluginEmbedder { |
24 public: | 23 public: |
25 TestBrowserPluginEmbedder(WebContentsImpl* web_contents, | 24 TestBrowserPluginEmbedder(WebContentsImpl* web_contents, |
26 RenderViewHost* render_view_host); | 25 RenderViewHost* render_view_host); |
27 virtual ~TestBrowserPluginEmbedder(); | 26 virtual ~TestBrowserPluginEmbedder(); |
(...skipping 13 matching lines...) Expand all Loading... |
41 WebContents* guest_web_contents) OVERRIDE; | 40 WebContents* guest_web_contents) OVERRIDE; |
42 | 41 |
43 scoped_refptr<MessageLoopRunner> message_loop_runner_; | 42 scoped_refptr<MessageLoopRunner> message_loop_runner_; |
44 | 43 |
45 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginEmbedder); | 44 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginEmbedder); |
46 }; | 45 }; |
47 | 46 |
48 } // namespace content | 47 } // namespace content |
49 | 48 |
50 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_EMBEDDER_H_ | 49 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |