| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 void set_response_headers_for_testing( | 360 void set_response_headers_for_testing( |
| 361 scoped_refptr<net::HttpResponseHeaders> response_headers) { | 361 scoped_refptr<net::HttpResponseHeaders> response_headers) { |
| 362 response_headers_ = response_headers; | 362 response_headers_ = response_headers; |
| 363 } | 363 } |
| 364 | 364 |
| 365 void set_complete_callback_for_testing( | 365 void set_complete_callback_for_testing( |
| 366 const ThrottleChecksFinishedCallback& callback) { | 366 const ThrottleChecksFinishedCallback& callback) { |
| 367 complete_callback_for_testing_ = callback; | 367 complete_callback_for_testing_ = callback; |
| 368 } | 368 } |
| 369 | 369 |
| 370 void set_base_url_for_data_url(const GURL& url) { | |
| 371 base_url_for_data_url_ = url; | |
| 372 } | |
| 373 | |
| 374 CSPDisposition should_check_main_world_csp() const { | 370 CSPDisposition should_check_main_world_csp() const { |
| 375 return should_check_main_world_csp_; | 371 return should_check_main_world_csp_; |
| 376 } | 372 } |
| 377 | 373 |
| 378 const SourceLocation& source_location() const { return source_location_; } | 374 const SourceLocation& source_location() const { return source_location_; } |
| 379 void set_source_location(const SourceLocation& source_location) { | 375 void set_source_location(const SourceLocation& source_location) { |
| 380 source_location_ = source_location; | 376 source_location_ = source_location; |
| 381 } | 377 } |
| 382 | 378 |
| 383 // PlzNavigate | 379 // PlzNavigate |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 int expected_render_process_host_id_; | 578 int expected_render_process_host_id_; |
| 583 | 579 |
| 584 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; | 580 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; |
| 585 | 581 |
| 586 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 582 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
| 587 }; | 583 }; |
| 588 | 584 |
| 589 } // namespace content | 585 } // namespace content |
| 590 | 586 |
| 591 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 587 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| OLD | NEW |