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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1088 // Non-null when the RenderFrame is a local root for compositing, input, | 1088 // Non-null when the RenderFrame is a local root for compositing, input, |
1089 // layout, etc. A local frame is also a local root iff it does not have a | 1089 // layout, etc. A local frame is also a local root iff it does not have a |
1090 // parent that is a local frame. | 1090 // parent that is a local frame. |
1091 scoped_refptr<RenderWidget> render_widget_; | 1091 scoped_refptr<RenderWidget> render_widget_; |
1092 | 1092 |
1093 // Temporarily holds state pertaining to a navigation that has been initiated | 1093 // Temporarily holds state pertaining to a navigation that has been initiated |
1094 // until the NavigationState corresponding to the new navigation is created in | 1094 // until the NavigationState corresponding to the new navigation is created in |
1095 // didCreateDataSource(). | 1095 // didCreateDataSource(). |
1096 std::unique_ptr<NavigationParams> pending_navigation_params_; | 1096 std::unique_ptr<NavigationParams> pending_navigation_params_; |
1097 | 1097 |
1098 // Keeps track of whether the browser process has any history items that need | |
1099 // to be used for subframes of this frame (in the case of a history | |
1100 // navigation). If not, the renderer can skip sending an IPC to the browser | |
1101 // and directly load any initial URLs for children itself. This state is | |
1102 // cleared during didStopLoading, since it is not needed after the first load | |
1103 // completes and is never used after the initial navigation. It is inherited | |
1104 // by subframes. | |
1105 // TODO(creis): Switch this to a data structure of unique names and | |
1106 // corresponding same-process PageStates in https://crbug.com/639842. | |
1107 bool browser_has_subtree_history_items_; | |
Charlie Reis
2016/09/21 21:17:49
Figuring out where (and how long) to store this is
alexmos
2016/09/22 01:44:06
Acknowledged.
| |
1108 | |
1098 // Stores the current history item for this frame, so that updates to it can | 1109 // Stores the current history item for this frame, so that updates to it can |
1099 // be reported to the browser process via SendUpdateState. | 1110 // be reported to the browser process via SendUpdateState. |
1100 blink::WebHistoryItem current_history_item_; | 1111 blink::WebHistoryItem current_history_item_; |
1101 | 1112 |
1102 #if defined(ENABLE_PLUGINS) | 1113 #if defined(ENABLE_PLUGINS) |
1103 // Current text input composition text. Empty if no composition is in | 1114 // Current text input composition text. Empty if no composition is in |
1104 // progress. | 1115 // progress. |
1105 base::string16 pepper_composition_text_; | 1116 base::string16 pepper_composition_text_; |
1106 | 1117 |
1107 PluginPowerSaverHelper* plugin_power_saver_helper_; | 1118 PluginPowerSaverHelper* plugin_power_saver_helper_; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1291 remote_associated_interfaces_; | 1302 remote_associated_interfaces_; |
1292 | 1303 |
1293 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1304 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1294 | 1305 |
1295 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1306 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1296 }; | 1307 }; |
1297 | 1308 |
1298 } // namespace content | 1309 } // namespace content |
1299 | 1310 |
1300 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1311 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |