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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 #endif | 832 #endif |
832 | 833 |
833 #if defined(OS_MACOSX) | 834 #if defined(OS_MACOSX) |
834 void OnCopyToFindPboard(); | 835 void OnCopyToFindPboard(); |
835 #endif | 836 #endif |
836 | 837 |
837 // Requests that the browser process navigates to |url|. If | 838 // Requests that the browser process navigates to |url|. If |
838 // |is_history_navigation_in_new_child| is true, the browser process should | 839 // |is_history_navigation_in_new_child| is true, the browser process should |
839 // look for a matching FrameNavigationEntry in the last committed entry to use | 840 // look for a matching FrameNavigationEntry in the last committed entry to use |
840 // instead of |url|. | 841 // instead of |url|. |
841 void OpenURL(const GURL& url, | 842 void OpenURL( |
842 const Referrer& referrer, | 843 const GURL& url, |
843 blink::WebNavigationPolicy policy, | 844 bool uses_post, |
844 bool should_replace_current_entry, | 845 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body, |
845 bool is_history_navigation_in_new_child); | 846 const Referrer& referrer, |
| 847 blink::WebNavigationPolicy policy, |
| 848 bool should_replace_current_entry, |
| 849 bool is_history_navigation_in_new_child); |
846 | 850 |
847 // Performs a navigation in the frame. This provides a unified function for | 851 // Performs a navigation in the frame. This provides a unified function for |
848 // the current code path and the browser-side navigation path (in | 852 // the current code path and the browser-side navigation path (in |
849 // development). Currently used by OnNavigate, with all *NavigationParams | 853 // development). Currently used by OnNavigate, with all *NavigationParams |
850 // provided by the browser. |stream_params| should be null. | 854 // provided by the browser. |stream_params| should be null. |
851 // PlzNavigate: used by OnCommitNavigation, with |common_params| and | 855 // PlzNavigate: used by OnCommitNavigation, with |common_params| and |
852 // |request_params| received by the browser. |stream_params| should be non | 856 // |request_params| received by the browser. |stream_params| should be non |
853 // null and created from the information provided by the browser. | 857 // null and created from the information provided by the browser. |
854 // |start_params| is not used. | 858 // |start_params| is not used. |
855 void NavigateInternal( | 859 void NavigateInternal( |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 #endif | 1249 #endif |
1246 | 1250 |
1247 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1251 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1248 | 1252 |
1249 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1253 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1250 }; | 1254 }; |
1251 | 1255 |
1252 } // namespace content | 1256 } // namespace content |
1253 | 1257 |
1254 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1258 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |