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