Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/browser/browser_plugin/test_browser_plugin_guest.h

Issue 11028019: Browser plugin: Implement loadRedirect event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 8 years, 2 months 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 | Annotate | Revision Log
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_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/browser/notification_observer.h"
12 #include "content/public/test/test_utils.h" 11 #include "content/public/test/test_utils.h"
13 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
14 13
15 class WebContentsImpl; 14 class WebContentsImpl;
16 15
17 namespace content { 16 namespace content {
18 17
19 class RenderProcessHost; 18 class RenderProcessHost;
20 class RenderViewHost; 19 class RenderViewHost;
21 20
22 // Test class for BrowserPluginGuest. 21 // Test class for BrowserPluginGuest.
23 // 22 //
24 // Provides utilities to wait for certain state/messages in BrowserPluginGuest 23 // Provides utilities to wait for certain state/messages in BrowserPluginGuest
25 // to be used in tests. 24 // to be used in tests.
26 class TestBrowserPluginGuest : public BrowserPluginGuest, 25 class TestBrowserPluginGuest : public BrowserPluginGuest {
27 public NotificationObserver {
28 public: 26 public:
29 TestBrowserPluginGuest(int instance_id, 27 TestBrowserPluginGuest(int instance_id,
30 WebContentsImpl* web_contents, 28 WebContentsImpl* web_contents,
31 RenderViewHost* render_view_host); 29 RenderViewHost* render_view_host);
32 virtual ~TestBrowserPluginGuest(); 30 virtual ~TestBrowserPluginGuest();
33 31
34 WebContentsImpl* web_contents() const; 32 WebContentsImpl* web_contents() const;
35 33
36 // NotificationObserver method override. 34 // NotificationObserver method override.
37 virtual void Observe(int type, 35 virtual void Observe(int type,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 90
93 scoped_refptr<MessageLoopRunner> send_message_loop_runner_; 91 scoped_refptr<MessageLoopRunner> send_message_loop_runner_;
94 scoped_refptr<MessageLoopRunner> crash_message_loop_runner_; 92 scoped_refptr<MessageLoopRunner> crash_message_loop_runner_;
95 scoped_refptr<MessageLoopRunner> focus_message_loop_runner_; 93 scoped_refptr<MessageLoopRunner> focus_message_loop_runner_;
96 scoped_refptr<MessageLoopRunner> advance_focus_message_loop_runner_; 94 scoped_refptr<MessageLoopRunner> advance_focus_message_loop_runner_;
97 scoped_refptr<MessageLoopRunner> was_hidden_message_loop_runner_; 95 scoped_refptr<MessageLoopRunner> was_hidden_message_loop_runner_;
98 scoped_refptr<MessageLoopRunner> reload_message_loop_runner_; 96 scoped_refptr<MessageLoopRunner> reload_message_loop_runner_;
99 scoped_refptr<MessageLoopRunner> stop_message_loop_runner_; 97 scoped_refptr<MessageLoopRunner> stop_message_loop_runner_;
100 scoped_refptr<MessageLoopRunner> damage_buffer_message_loop_runner_; 98 scoped_refptr<MessageLoopRunner> damage_buffer_message_loop_runner_;
101 99
102 // A scoped container for notification registries.
103 NotificationRegistrar registrar_;
104
105 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); 100 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest);
106 }; 101 };
107 102
108 } // namespace content 103 } // namespace content
109 104
110 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 105 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698