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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/strings/string16.h" | 21 #include "base/strings/string16.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "content/browser/accessibility/browser_accessibility_manager.h" | 24 #include "content/browser/accessibility/browser_accessibility_manager.h" |
25 #include "content/browser/bad_message.h" | 25 #include "content/browser/bad_message.h" |
| 26 #include "content/browser/loader/global_routing_id.h" |
26 #include "content/browser/site_instance_impl.h" | 27 #include "content/browser/site_instance_impl.h" |
27 #include "content/browser/webui/web_ui_impl.h" | 28 #include "content/browser/webui/web_ui_impl.h" |
28 #include "content/common/accessibility_mode_enums.h" | 29 #include "content/common/accessibility_mode_enums.h" |
29 #include "content/common/ax_content_node_data.h" | 30 #include "content/common/ax_content_node_data.h" |
30 #include "content/common/content_export.h" | 31 #include "content/common/content_export.h" |
31 #include "content/common/frame_message_enums.h" | 32 #include "content/common/frame_message_enums.h" |
32 #include "content/common/frame_replication_state.h" | 33 #include "content/common/frame_replication_state.h" |
33 #include "content/common/image_downloader/image_downloader.mojom.h" | 34 #include "content/common/image_downloader/image_downloader.mojom.h" |
34 #include "content/common/mojo/service_registry_impl.h" | 35 #include "content/common/mojo/service_registry_impl.h" |
35 #include "content/common/navigation_params.h" | 36 #include "content/common/navigation_params.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // FrameTreeNode. The proper way to check whether a frame is loading is to | 246 // FrameTreeNode. The proper way to check whether a frame is loading is to |
246 // call FrameTreeNode::IsLoading. | 247 // call FrameTreeNode::IsLoading. |
247 bool is_loading() const { return is_loading_; } | 248 bool is_loading() const { return is_loading_; } |
248 | 249 |
249 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, | 250 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, |
250 // or else it returns nullptr. | 251 // or else it returns nullptr. |
251 // If the RenderFrameHost is the page's main frame, this returns instead a | 252 // If the RenderFrameHost is the page's main frame, this returns instead a |
252 // pointer to the RenderViewHost (which inherits RenderWidgetHost). | 253 // pointer to the RenderViewHost (which inherits RenderWidgetHost). |
253 RenderWidgetHostImpl* GetRenderWidgetHost(); | 254 RenderWidgetHostImpl* GetRenderWidgetHost(); |
254 | 255 |
| 256 GlobalFrameRoutingId GetGlobalFrameRoutingId(); |
255 | 257 |
256 // This function is called when this is a swapped out RenderFrameHost that | 258 // This function is called when this is a swapped out RenderFrameHost that |
257 // lives in the same process as the parent frame. The | 259 // lives in the same process as the parent frame. The |
258 // |cross_process_frame_connector| allows the non-swapped-out | 260 // |cross_process_frame_connector| allows the non-swapped-out |
259 // RenderFrameHost for a frame to communicate with the parent process | 261 // RenderFrameHost for a frame to communicate with the parent process |
260 // so that it may composite drawing data. | 262 // so that it may composite drawing data. |
261 // | 263 // |
262 // Ownership is not transfered. | 264 // Ownership is not transfered. |
263 void set_cross_process_frame_connector( | 265 void set_cross_process_frame_connector( |
264 CrossProcessFrameConnector* cross_process_frame_connector) { | 266 CrossProcessFrameConnector* cross_process_frame_connector) { |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 | 894 |
893 // NOTE: This must be the last member. | 895 // NOTE: This must be the last member. |
894 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 896 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
895 | 897 |
896 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 898 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
897 }; | 899 }; |
898 | 900 |
899 } // namespace content | 901 } // namespace content |
900 | 902 |
901 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 903 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |