| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/navigation_handle.h" | 8 #include "content/public/browser/navigation_handle.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 return navigation_ui_data_.get(); | 307 return navigation_ui_data_.get(); |
| 308 } | 308 } |
| 309 | 309 |
| 310 const GURL& base_url() { return base_url_; } | 310 const GURL& base_url() { return base_url_; } |
| 311 | 311 |
| 312 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; } | 312 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; } |
| 313 void set_searchable_form_encoding(const std::string& encoding) { | 313 void set_searchable_form_encoding(const std::string& encoding) { |
| 314 searchable_form_encoding_ = encoding; | 314 searchable_form_encoding_ = encoding; |
| 315 } | 315 } |
| 316 | 316 |
| 317 void set_response_headers_for_testing( |
| 318 scoped_refptr<net::HttpResponseHeaders> response_headers) { |
| 319 response_headers_ = response_headers; |
| 320 } |
| 321 |
| 317 private: | 322 private: |
| 318 friend class NavigationHandleImplTest; | 323 friend class NavigationHandleImplTest; |
| 319 | 324 |
| 320 // Used to track the state the navigation is currently in. | 325 // Used to track the state the navigation is currently in. |
| 321 enum State { | 326 enum State { |
| 322 INITIAL = 0, | 327 INITIAL = 0, |
| 323 WILL_SEND_REQUEST, | 328 WILL_SEND_REQUEST, |
| 324 DEFERRING_START, | 329 DEFERRING_START, |
| 325 WILL_REDIRECT_REQUEST, | 330 WILL_REDIRECT_REQUEST, |
| 326 DEFERRING_REDIRECT, | 331 DEFERRING_REDIRECT, |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 net::HostPortPair socket_address_; | 483 net::HostPortPair socket_address_; |
| 479 | 484 |
| 480 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; | 485 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; |
| 481 | 486 |
| 482 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 487 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
| 483 }; | 488 }; |
| 484 | 489 |
| 485 } // namespace content | 490 } // namespace content |
| 486 | 491 |
| 487 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 492 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| OLD | NEW |