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

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

Issue 457003002: [site isolation] cross-site transfers should track the RenderFrameHost, not the View (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self-review fixes Created 6 years, 4 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_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 public: 153 public:
154 RenderViewHostTestHarness(); 154 RenderViewHostTestHarness();
155 virtual ~RenderViewHostTestHarness(); 155 virtual ~RenderViewHostTestHarness();
156 156
157 NavigationController& controller(); 157 NavigationController& controller();
158 WebContents* web_contents(); 158 WebContents* web_contents();
159 RenderViewHost* rvh(); 159 RenderViewHost* rvh();
160 RenderViewHost* pending_rvh(); 160 RenderViewHost* pending_rvh();
161 RenderViewHost* active_rvh(); 161 RenderViewHost* active_rvh();
162 RenderFrameHost* main_rfh(); 162 RenderFrameHost* main_rfh();
163 RenderFrameHost* pending_main_rfh();
163 BrowserContext* browser_context(); 164 BrowserContext* browser_context();
164 MockRenderProcessHost* process(); 165 MockRenderProcessHost* process();
165 166
166 // Frees the current WebContents for tests that want to test destruction. 167 // Frees the current WebContents for tests that want to test destruction.
167 void DeleteContents(); 168 void DeleteContents();
168 169
169 // Sets the current WebContents for tests that want to alter it. Takes 170 // Sets the current WebContents for tests that want to alter it. Takes
170 // ownership of the WebContents passed. 171 // ownership of the WebContents passed.
171 void SetContents(WebContents* contents); 172 void SetContents(WebContents* contents);
172 173
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 227
227 int thread_bundle_options_; 228 int thread_bundle_options_;
228 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; 229 scoped_ptr<TestBrowserThreadBundle> thread_bundle_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 231 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
231 }; 232 };
232 233
233 } // namespace content 234 } // namespace content
234 235
235 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 236 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/public/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698