| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // This method does the same as PrepareForCommit. | 134 // This method does the same as PrepareForCommit. |
| 135 // PlzNavigate: Beyond doing the same as PrepareForCommit, this method will | 135 // PlzNavigate: Beyond doing the same as PrepareForCommit, this method will |
| 136 // also simulate a server redirect to |redirect_url|. If the URL is empty the | 136 // also simulate a server redirect to |redirect_url|. If the URL is empty the |
| 137 // redirect step is ignored. | 137 // redirect step is ignored. |
| 138 void PrepareForCommitWithServerRedirect(const GURL& redirect_url); | 138 void PrepareForCommitWithServerRedirect(const GURL& redirect_url); |
| 139 | 139 |
| 140 // PlzNavigate | 140 // PlzNavigate |
| 141 void set_pending_commit(bool pending) { pending_commit_ = pending; } | 141 void set_pending_commit(bool pending) { pending_commit_ = pending; } |
| 142 bool pending_commit() const { return pending_commit_; } | 142 bool pending_commit() const { return pending_commit_; } |
| 143 | 143 |
| 144 // Dummy connections to Mojo services. |
| 145 WebBluetoothServiceImpl* CreateWebBluetoothServiceForTesting(); |
| 146 |
| 144 private: | 147 private: |
| 145 void SendNavigateWithParameters(int page_id, | 148 void SendNavigateWithParameters(int page_id, |
| 146 int nav_entry_id, | 149 int nav_entry_id, |
| 147 bool did_create_new_entry, | 150 bool did_create_new_entry, |
| 148 bool should_replace_entry, | 151 bool should_replace_entry, |
| 149 const GURL& url, | 152 const GURL& url, |
| 150 ui::PageTransition transition, | 153 ui::PageTransition transition, |
| 151 int response_code, | 154 int response_code, |
| 152 const ModificationCallback& callback); | 155 const ModificationCallback& callback); |
| 153 | 156 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 164 | 167 |
| 165 // See set_simulate_history_list_was_cleared() above. | 168 // See set_simulate_history_list_was_cleared() above. |
| 166 bool simulate_history_list_was_cleared_; | 169 bool simulate_history_list_was_cleared_; |
| 167 | 170 |
| 168 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 171 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 } // namespace content | 174 } // namespace content |
| 172 | 175 |
| 173 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 176 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |