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 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/id_map.h" | 17 #include "base/id_map.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" |
| 20 #include "base/memory/ref_counted.h" |
20 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
21 #include "base/observer_list.h" | 22 #include "base/observer_list.h" |
22 #include "base/process/process_handle.h" | 23 #include "base/process/process_handle.h" |
23 #include "build/build_config.h" | 24 #include "build/build_config.h" |
24 #include "content/common/accessibility_mode_enums.h" | 25 #include "content/common/accessibility_mode_enums.h" |
25 #include "content/common/frame_message_enums.h" | 26 #include "content/common/frame_message_enums.h" |
26 #include "content/common/mojo/service_registry_impl.h" | 27 #include "content/common/mojo/service_registry_impl.h" |
27 #include "content/public/common/console_message_level.h" | 28 #include "content/public/common/console_message_level.h" |
28 #include "content/public/common/javascript_message_type.h" | 29 #include "content/public/common/javascript_message_type.h" |
29 #include "content/public/common/referrer.h" | 30 #include "content/public/common/referrer.h" |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 #endif | 846 #endif |
846 | 847 |
847 #if defined(OS_MACOSX) | 848 #if defined(OS_MACOSX) |
848 void OnCopyToFindPboard(); | 849 void OnCopyToFindPboard(); |
849 #endif | 850 #endif |
850 | 851 |
851 // Requests that the browser process navigates to |url|. If | 852 // Requests that the browser process navigates to |url|. If |
852 // |is_history_navigation_in_new_child| is true, the browser process should | 853 // |is_history_navigation_in_new_child| is true, the browser process should |
853 // look for a matching FrameNavigationEntry in the last committed entry to use | 854 // look for a matching FrameNavigationEntry in the last committed entry to use |
854 // instead of |url|. | 855 // instead of |url|. |
855 void OpenURL(const GURL& url, | 856 void OpenURL( |
856 const Referrer& referrer, | 857 const GURL& url, |
857 blink::WebNavigationPolicy policy, | 858 bool uses_post, |
858 bool should_replace_current_entry, | 859 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body, |
859 bool is_history_navigation_in_new_child); | 860 const Referrer& referrer, |
| 861 blink::WebNavigationPolicy policy, |
| 862 bool should_replace_current_entry, |
| 863 bool is_history_navigation_in_new_child); |
860 | 864 |
861 // Performs a navigation in the frame. This provides a unified function for | 865 // Performs a navigation in the frame. This provides a unified function for |
862 // the current code path and the browser-side navigation path (in | 866 // the current code path and the browser-side navigation path (in |
863 // development). Currently used by OnNavigate, with all *NavigationParams | 867 // development). Currently used by OnNavigate, with all *NavigationParams |
864 // provided by the browser. |stream_params| should be null. | 868 // provided by the browser. |stream_params| should be null. |
865 // PlzNavigate: used by OnCommitNavigation, with |common_params| and | 869 // PlzNavigate: used by OnCommitNavigation, with |common_params| and |
866 // |request_params| received by the browser. |stream_params| should be non | 870 // |request_params| received by the browser. |stream_params| should be non |
867 // null and created from the information provided by the browser. | 871 // null and created from the information provided by the browser. |
868 // |start_params| is not used. | 872 // |start_params| is not used. |
869 void NavigateInternal( | 873 void NavigateInternal( |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 #endif | 1279 #endif |
1276 | 1280 |
1277 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1281 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1278 | 1282 |
1279 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1283 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1280 }; | 1284 }; |
1281 | 1285 |
1282 } // namespace content | 1286 } // namespace content |
1283 | 1287 |
1284 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1288 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |