| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const GURL& url, | 69 const GURL& url, |
| 70 const std::vector<GURL>& redirects); | 70 const std::vector<GURL>& redirects); |
| 71 void SendNavigateWithParameters( | 71 void SendNavigateWithParameters( |
| 72 int page_id, | 72 int page_id, |
| 73 const GURL& url, | 73 const GURL& url, |
| 74 PageTransition transition, | 74 PageTransition transition, |
| 75 const GURL& original_request_url, | 75 const GURL& original_request_url, |
| 76 int response_code, | 76 int response_code, |
| 77 const base::FilePath* file_path_for_history_item, | 77 const base::FilePath* file_path_for_history_item, |
| 78 const std::vector<GURL>& redirects); | 78 const std::vector<GURL>& redirects); |
| 79 void SendBeginNavigationWithURL(const GURL& url); |
| 79 | 80 |
| 80 void set_contents_mime_type(const std::string& mime_type) { | 81 void set_contents_mime_type(const std::string& mime_type) { |
| 81 contents_mime_type_ = mime_type; | 82 contents_mime_type_ = mime_type; |
| 82 } | 83 } |
| 83 | 84 |
| 84 // If set, navigations will appear to have cleared the history list in the | 85 // If set, navigations will appear to have cleared the history list in the |
| 85 // RenderFrame | 86 // RenderFrame |
| 86 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). | 87 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). |
| 87 // False by default. | 88 // False by default. |
| 88 void set_simulate_history_list_was_cleared(bool cleared) { | 89 void set_simulate_history_list_was_cleared(bool cleared) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 99 | 100 |
| 100 // See set_simulate_history_list_was_cleared() above. | 101 // See set_simulate_history_list_was_cleared() above. |
| 101 bool simulate_history_list_was_cleared_; | 102 bool simulate_history_list_was_cleared_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 104 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace content | 107 } // namespace content |
| 107 | 108 |
| 108 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 109 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |