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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 void didAddMessageToConsole(const blink::WebConsoleMessage& message, | 443 void didAddMessageToConsole(const blink::WebConsoleMessage& message, |
444 const blink::WebString& source_name, | 444 const blink::WebString& source_name, |
445 unsigned source_line, | 445 unsigned source_line, |
446 const blink::WebString& stack_trace) override; | 446 const blink::WebString& stack_trace) override; |
447 void loadURLExternally(const blink::WebURLRequest& request, | 447 void loadURLExternally(const blink::WebURLRequest& request, |
448 blink::WebNavigationPolicy policy, | 448 blink::WebNavigationPolicy policy, |
449 const blink::WebString& suggested_name, | 449 const blink::WebString& suggested_name, |
450 bool should_replace_current_entry) override; | 450 bool should_replace_current_entry) override; |
451 blink::WebNavigationPolicy decidePolicyForNavigation( | 451 blink::WebNavigationPolicy decidePolicyForNavigation( |
452 const NavigationPolicyInfo& info) override; | 452 const NavigationPolicyInfo& info) override; |
453 blink::WebHistoryItem historyItemForNewChildFrame( | 453 blink::WebHistoryItem historyItemForNewChildFrame() override; |
454 blink::WebFrame* frame) override; | |
455 void willSendSubmitEvent(blink::WebLocalFrame* frame, | 454 void willSendSubmitEvent(blink::WebLocalFrame* frame, |
456 const blink::WebFormElement& form) override; | 455 const blink::WebFormElement& form) override; |
457 void willSubmitForm(blink::WebLocalFrame* frame, | 456 void willSubmitForm(blink::WebLocalFrame* frame, |
458 const blink::WebFormElement& form) override; | 457 const blink::WebFormElement& form) override; |
459 void didCreateDataSource(blink::WebLocalFrame* frame, | 458 void didCreateDataSource(blink::WebLocalFrame* frame, |
460 blink::WebDataSource* datasource) override; | 459 blink::WebDataSource* datasource) override; |
461 void didStartProvisionalLoad(blink::WebLocalFrame* frame, | 460 void didStartProvisionalLoad(blink::WebLocalFrame* frame, |
462 double triggering_event_time) override; | 461 double triggering_event_time) override; |
463 void didReceiveServerRedirectForProvisionalLoad( | 462 void didReceiveServerRedirectForProvisionalLoad( |
464 blink::WebLocalFrame* frame) override; | 463 blink::WebLocalFrame* frame) override; |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 void OnFailedNavigation(const CommonNavigationParams& common_params, | 764 void OnFailedNavigation(const CommonNavigationParams& common_params, |
766 const RequestNavigationParams& request_params, | 765 const RequestNavigationParams& request_params, |
767 bool has_stale_copy_in_cache, | 766 bool has_stale_copy_in_cache, |
768 int error_code); | 767 int error_code); |
769 void OnGetSavableResourceLinks(); | 768 void OnGetSavableResourceLinks(); |
770 void OnGetSerializedHtmlWithLocalLinks( | 769 void OnGetSerializedHtmlWithLocalLinks( |
771 std::vector<GURL> original_urls, | 770 std::vector<GURL> original_urls, |
772 std::vector<base::FilePath> equivalent_local_paths, | 771 std::vector<base::FilePath> equivalent_local_paths, |
773 base::FilePath local_directory_path); | 772 base::FilePath local_directory_path); |
774 | 773 |
| 774 // Requests that the browser process navigates to |url|. If |
| 775 // |is_history_navigation_in_new_child| is true, the browser process should |
| 776 // look for a matching FrameNavigationEntry in the last committed entry to use |
| 777 // instead of |url|. |
775 void OpenURL(const GURL& url, | 778 void OpenURL(const GURL& url, |
776 const Referrer& referrer, | 779 const Referrer& referrer, |
777 blink::WebNavigationPolicy policy, | 780 blink::WebNavigationPolicy policy, |
778 bool should_replace_current_entry); | 781 bool should_replace_current_entry, |
| 782 bool is_history_navigation_in_new_child); |
779 | 783 |
780 // Performs a navigation in the frame. This provides a unified function for | 784 // Performs a navigation in the frame. This provides a unified function for |
781 // the current code path and the browser-side navigation path (in | 785 // the current code path and the browser-side navigation path (in |
782 // development). Currently used by OnNavigate, with all *NavigationParams | 786 // development). Currently used by OnNavigate, with all *NavigationParams |
783 // provided by the browser. |stream_params| should be null. | 787 // provided by the browser. |stream_params| should be null. |
784 // PlzNavigate: used by OnCommitNavigation, with |common_params| and | 788 // PlzNavigate: used by OnCommitNavigation, with |common_params| and |
785 // |request_params| received by the browser. |stream_params| should be non | 789 // |request_params| received by the browser. |stream_params| should be non |
786 // null and created from the information provided by the browser. | 790 // null and created from the information provided by the browser. |
787 // |start_params| is not used. | 791 // |start_params| is not used. |
788 void NavigateInternal(const CommonNavigationParams& common_params, | 792 void NavigateInternal(const CommonNavigationParams& common_params, |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 #endif | 1122 #endif |
1119 | 1123 |
1120 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1124 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1121 | 1125 |
1122 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1126 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1123 }; | 1127 }; |
1124 | 1128 |
1125 } // namespace content | 1129 } // namespace content |
1126 | 1130 |
1127 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1131 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |