Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2550113002: Send a subtree of same-process PageStates for back/forward child frames.
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 // Non-null when the RenderFrame is a local root for compositing, input, 1118 // Non-null when the RenderFrame is a local root for compositing, input,
1119 // layout, etc. A local frame is also a local root iff it does not have a 1119 // layout, etc. A local frame is also a local root iff it does not have a
1120 // parent that is a local frame. 1120 // parent that is a local frame.
1121 scoped_refptr<RenderWidget> render_widget_; 1121 scoped_refptr<RenderWidget> render_widget_;
1122 1122
1123 // Temporarily holds state pertaining to a navigation that has been initiated 1123 // Temporarily holds state pertaining to a navigation that has been initiated
1124 // until the NavigationState corresponding to the new navigation is created in 1124 // until the NavigationState corresponding to the new navigation is created in
1125 // didCreateDataSource(). 1125 // didCreateDataSource().
1126 std::unique_ptr<NavigationParams> pending_navigation_params_; 1126 std::unique_ptr<NavigationParams> pending_navigation_params_;
1127 1127
1128 // Keeps track of which future subframes the browser process has history items
1129 // for during a history navigation, as well as whether those items are for
1130 // about:blank. The renderer process should ask the browser for history items
1131 // when subframes with these names are created (as long as they are not
1132 // staying at about:blank), and directly load the initial URLs for any other
1133 // subframes.
1134 //
1135 // This state is incrementally cleared as it is used and then reset in
1136 // didStopLoading, since it is not needed after the first load completes and
1137 // is never used after the initial navigation.
1138 // TODO(creis): Expand this to include any corresponding same-process
1139 // PageStates for the whole subtree in https://crbug.com/639842.
1140 std::map<std::string, bool> history_subframe_unique_names_;
1141
1142 // Stores the current history item for this frame, so that updates to it can 1128 // Stores the current history item for this frame, so that updates to it can
1143 // be reported to the browser process via SendUpdateState. 1129 // be reported to the browser process via SendUpdateState.
1144 blink::WebHistoryItem current_history_item_; 1130 blink::WebHistoryItem current_history_item_;
1145 1131
1146 #if BUILDFLAG(ENABLE_PLUGINS) 1132 #if BUILDFLAG(ENABLE_PLUGINS)
1147 // Current text input composition text. Empty if no composition is in 1133 // Current text input composition text. Empty if no composition is in
1148 // progress. 1134 // progress.
1149 base::string16 pepper_composition_text_; 1135 base::string16 pepper_composition_text_;
1150 1136
1151 PluginPowerSaverHelper* plugin_power_saver_helper_; 1137 PluginPowerSaverHelper* plugin_power_saver_helper_;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 bool browser_side_navigation_pending_ = false; 1331 bool browser_side_navigation_pending_ = false;
1346 1332
1347 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1333 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1348 1334
1349 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1335 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1350 }; 1336 };
1351 1337
1352 } // namespace content 1338 } // namespace content
1353 1339
1354 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1340 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698