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

Unified Diff: content/test/test_render_frame_host.h

Issue 135723003: Move DidCommitProvisionalLoad code from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some clean up, ready to start reviewing. Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/test/test_render_frame_host.h
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index 7668b25c02962a64c05a2bd2ddb761667fecfa19..649abee9b4c6d7fb386f5c5f2f845035e6c6b581 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -7,6 +7,9 @@
#include "base/basictypes.h"
#include "content/browser/frame_host/render_frame_host_impl.h"
+#include "content/public/common/page_transition_types.h"
+
+struct FrameHostMsg_DidCommitProvisionalLoad_Params;
namespace content {
@@ -20,10 +23,35 @@ class TestRenderFrameHost : public RenderFrameHostImpl {
bool is_swapped_out);
virtual ~TestRenderFrameHost();
+ void SendNavigate(int page_id, const GURL& url);
+ void SendNavigateWithTransition(
+ int page_id,
+ const GURL& url,
+ PageTransition transition);
+ void SendNavigateWithTransitionAndResponseCode(
+ int page_id,
+ const GURL& url, PageTransition transition,
+ int response_code);
+ void SendNavigateWithOriginalRequestURL(
+ int page_id,
+ const GURL& url,
+ const GURL& original_request_url);
+ void SendNavigateWithParams(
+ FrameHostMsg_DidCommitProvisionalLoad_Params* params);
+ void SendNavigateWithParameters(
+ int page_id,
+ const GURL& url,
+ PageTransition transition,
+ const GURL& original_request_url,
+ int response_code,
+ const base::FilePath* file_path_for_history_item);
+
// TODO(nick): As necessary for testing, override behavior of RenderFrameHost
// here.
private:
+ std::string contents_mime_type_;
+
DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
};

Powered by Google App Engine
This is Rietveld 408576698