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

Side by Side Diff: content/test/test_renderer_host.h

Issue 10073023: TabContents -> WebContentsImpl, part 14. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/test_renderer_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 28 matching lines...) Expand all
39 // RenderViewHost. The RenderViewHost must have been created while 39 // RenderViewHost. The RenderViewHost must have been created while
40 // RenderViewHost testing was enabled; use a 40 // RenderViewHost testing was enabled; use a
41 // RenderViewHostTestEnabler instance (see below) to do this. 41 // RenderViewHostTestEnabler instance (see below) to do this.
42 static RenderViewHostTester* For(RenderViewHost* host); 42 static RenderViewHostTester* For(RenderViewHost* host);
43 43
44 // This removes the need to expose 44 // This removes the need to expose
45 // RenderViewHostImpl::set_send_accessibility_updated_notifications() 45 // RenderViewHostImpl::set_send_accessibility_updated_notifications()
46 // outside of content. 46 // outside of content.
47 static void EnableAccessibilityUpdatedNotifications(RenderViewHost* host); 47 static void EnableAccessibilityUpdatedNotifications(RenderViewHost* host);
48 48
49 // If the given TabContents has a pending RVH, returns it, otherwise NULL. 49 // If the given WebContentsImpl has a pending RVH, returns it, otherwise NULL.
50 static RenderViewHost* GetPendingForController( 50 static RenderViewHost* GetPendingForController(
51 NavigationController* controller); 51 NavigationController* controller);
52 52
53 // This removes the need to expose 53 // This removes the need to expose
54 // RenderViewHostImpl::is_swapped_out() outside of content. 54 // RenderViewHostImpl::is_swapped_out() outside of content.
55 // 55 //
56 // This is safe to call on any RenderViewHost, not just ones 56 // This is safe to call on any RenderViewHost, not just ones
57 // constructed while a RenderViewHostTestEnabler is in play. 57 // constructed while a RenderViewHostTestEnabler is in play.
58 static bool IsRenderViewHostSwappedOut(RenderViewHost* rvh); 58 static bool IsRenderViewHostSwappedOut(RenderViewHost* rvh);
59 59
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; 175 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_;
176 #endif 176 #endif
177 RenderViewHostTestEnabler rvh_test_enabler_; 177 RenderViewHostTestEnabler rvh_test_enabler_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
180 }; 180 };
181 181
182 } // namespace content 182 } // namespace content
183 183
184 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ 184 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698