| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 blink::WebHistoryCommitType commit_type) override; | 586 blink::WebHistoryCommitType commit_type) override; |
| 587 void didFinishLoad(blink::WebLocalFrame* frame) override; | 587 void didFinishLoad(blink::WebLocalFrame* frame) override; |
| 588 void didNavigateWithinPage(blink::WebLocalFrame* frame, | 588 void didNavigateWithinPage(blink::WebLocalFrame* frame, |
| 589 const blink::WebHistoryItem& item, | 589 const blink::WebHistoryItem& item, |
| 590 blink::WebHistoryCommitType commit_type, | 590 blink::WebHistoryCommitType commit_type, |
| 591 bool content_initiated) override; | 591 bool content_initiated) override; |
| 592 void didUpdateCurrentHistoryItem() override; | 592 void didUpdateCurrentHistoryItem() override; |
| 593 void didChangeThemeColor() override; | 593 void didChangeThemeColor() override; |
| 594 void dispatchLoad() override; | 594 void dispatchLoad() override; |
| 595 blink::WebEffectiveConnectionType getEffectiveConnectionType() override; | 595 blink::WebEffectiveConnectionType getEffectiveConnectionType() override; |
| 596 void abortClientNavigation() override; |
| 596 void didChangeSelection(bool is_empty_selection) override; | 597 void didChangeSelection(bool is_empty_selection) override; |
| 597 bool handleCurrentKeyboardEvent() override; | 598 bool handleCurrentKeyboardEvent() override; |
| 598 blink::WebColorChooser* createColorChooser( | 599 blink::WebColorChooser* createColorChooser( |
| 599 blink::WebColorChooserClient* client, | 600 blink::WebColorChooserClient* client, |
| 600 const blink::WebColor& initial_color, | 601 const blink::WebColor& initial_color, |
| 601 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; | 602 const blink::WebVector<blink::WebColorSuggestion>& suggestions) override; |
| 602 void runModalAlertDialog(const blink::WebString& message) override; | 603 void runModalAlertDialog(const blink::WebString& message) override; |
| 603 bool runModalConfirmDialog(const blink::WebString& message) override; | 604 bool runModalConfirmDialog(const blink::WebString& message) override; |
| 604 bool runModalPromptDialog(const blink::WebString& message, | 605 bool runModalPromptDialog(const blink::WebString& message, |
| 605 const blink::WebString& default_value, | 606 const blink::WebString& default_value, |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 void OnCommitNavigation(const ResourceResponseHead& response, | 895 void OnCommitNavigation(const ResourceResponseHead& response, |
| 895 const GURL& stream_url, | 896 const GURL& stream_url, |
| 896 const CommonNavigationParams& common_params, | 897 const CommonNavigationParams& common_params, |
| 897 const RequestNavigationParams& request_params); | 898 const RequestNavigationParams& request_params); |
| 898 void OnFailedNavigation(const CommonNavigationParams& common_params, | 899 void OnFailedNavigation(const CommonNavigationParams& common_params, |
| 899 const RequestNavigationParams& request_params, | 900 const RequestNavigationParams& request_params, |
| 900 bool has_stale_copy_in_cache, | 901 bool has_stale_copy_in_cache, |
| 901 int error_code); | 902 int error_code); |
| 902 void OnReportContentSecurityPolicyViolation( | 903 void OnReportContentSecurityPolicyViolation( |
| 903 const content::CSPViolationParams& violation_params); | 904 const content::CSPViolationParams& violation_params); |
| 905 void OnDroppedNavigation(int navigation_id); |
| 904 void OnGetSavableResourceLinks(); | 906 void OnGetSavableResourceLinks(); |
| 905 void OnGetSerializedHtmlWithLocalLinks( | 907 void OnGetSerializedHtmlWithLocalLinks( |
| 906 const std::map<GURL, base::FilePath>& url_to_local_path, | 908 const std::map<GURL, base::FilePath>& url_to_local_path, |
| 907 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); | 909 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); |
| 908 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); | 910 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); |
| 909 void OnFind(int request_id, | 911 void OnFind(int request_id, |
| 910 const base::string16& search_text, | 912 const base::string16& search_text, |
| 911 const blink::WebFindOptions& options); | 913 const blink::WebFindOptions& options); |
| 912 void OnClearActiveFindMatch(); | 914 void OnClearActiveFindMatch(); |
| 913 void OnStopFinding(StopFindAction action); | 915 void OnStopFinding(StopFindAction action); |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1422 client_redirect(info.isClientRedirect), | 1424 client_redirect(info.isClientRedirect), |
| 1423 cache_disabled(info.isCacheDisabled), | 1425 cache_disabled(info.isCacheDisabled), |
| 1424 form(info.form) {} | 1426 form(info.form) {} |
| 1425 }; | 1427 }; |
| 1426 | 1428 |
| 1427 // PlzNavigate: Contains information about a pending navigation to be sent to | 1429 // PlzNavigate: Contains information about a pending navigation to be sent to |
| 1428 // the browser. This state is allocated in decidePolicyForNavigation() and | 1430 // the browser. This state is allocated in decidePolicyForNavigation() and |
| 1429 // is used and released in didStartProvisionalLoad(). | 1431 // is used and released in didStartProvisionalLoad(). |
| 1430 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; | 1432 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; |
| 1431 | 1433 |
| 1434 // PlzNavigate |
| 1435 // An id to identify the last navigation sent to the browser. |
| 1436 int navigation_id_ = 0; |
| 1437 |
| 1432 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1438 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1433 | 1439 |
| 1434 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1440 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1435 }; | 1441 }; |
| 1436 | 1442 |
| 1437 } // namespace content | 1443 } // namespace content |
| 1438 | 1444 |
| 1439 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1445 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |