| 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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 void OnCommitNavigation(const ResourceResponseHead& response, | 898 void OnCommitNavigation(const ResourceResponseHead& response, |
| 899 const GURL& stream_url, | 899 const GURL& stream_url, |
| 900 const CommonNavigationParams& common_params, | 900 const CommonNavigationParams& common_params, |
| 901 const RequestNavigationParams& request_params); | 901 const RequestNavigationParams& request_params); |
| 902 void OnFailedNavigation(const CommonNavigationParams& common_params, | 902 void OnFailedNavigation(const CommonNavigationParams& common_params, |
| 903 const RequestNavigationParams& request_params, | 903 const RequestNavigationParams& request_params, |
| 904 bool has_stale_copy_in_cache, | 904 bool has_stale_copy_in_cache, |
| 905 int error_code); | 905 int error_code); |
| 906 void OnReportContentSecurityPolicyViolation( | 906 void OnReportContentSecurityPolicyViolation( |
| 907 const content::CSPViolationParams& violation_params); | 907 const content::CSPViolationParams& violation_params); |
| 908 void OnDroppedNavigation(int navigation_id); |
| 908 void OnGetSavableResourceLinks(); | 909 void OnGetSavableResourceLinks(); |
| 909 void OnGetSerializedHtmlWithLocalLinks( | 910 void OnGetSerializedHtmlWithLocalLinks( |
| 910 const std::map<GURL, base::FilePath>& url_to_local_path, | 911 const std::map<GURL, base::FilePath>& url_to_local_path, |
| 911 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); | 912 const std::map<int, base::FilePath>& frame_routing_id_to_local_path); |
| 912 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); | 913 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params); |
| 913 void OnFind(int request_id, | 914 void OnFind(int request_id, |
| 914 const base::string16& search_text, | 915 const base::string16& search_text, |
| 915 const blink::WebFindOptions& options); | 916 const blink::WebFindOptions& options); |
| 916 void OnClearActiveFindMatch(); | 917 void OnClearActiveFindMatch(); |
| 917 void OnStopFinding(StopFindAction action); | 918 void OnStopFinding(StopFindAction action); |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 blink::WebSourceLocation source_location; | 1418 blink::WebSourceLocation source_location; |
| 1418 | 1419 |
| 1419 PendingNavigationInfo(const NavigationPolicyInfo& info); | 1420 PendingNavigationInfo(const NavigationPolicyInfo& info); |
| 1420 }; | 1421 }; |
| 1421 | 1422 |
| 1422 // PlzNavigate: Contains information about a pending navigation to be sent to | 1423 // PlzNavigate: Contains information about a pending navigation to be sent to |
| 1423 // the browser. This state is allocated in decidePolicyForNavigation() and | 1424 // the browser. This state is allocated in decidePolicyForNavigation() and |
| 1424 // is used and released in didStartProvisionalLoad(). | 1425 // is used and released in didStartProvisionalLoad(). |
| 1425 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; | 1426 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; |
| 1426 | 1427 |
| 1428 // PlzNavigate |
| 1429 // An id to identify the last navigation sent to the browser. |
| 1430 int navigation_id_ = 0; |
| 1431 |
| 1427 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1432 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1428 | 1433 |
| 1429 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1434 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1430 }; | 1435 }; |
| 1431 | 1436 |
| 1432 } // namespace content | 1437 } // namespace content |
| 1433 | 1438 |
| 1434 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1439 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |