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

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

Issue 2734633002: PlzNavigate: Fix the http/tests/loading/307-after-303-after-post.html and the http/tests/loading/re… (Closed)
Patch Set: Created 3 years, 9 months 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
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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 // TODO(dcheng): Remove these members. 1389 // TODO(dcheng): Remove these members.
1390 bool committed_first_load_ = false; 1390 bool committed_first_load_ = false;
1391 bool name_changed_before_first_commit_ = false; 1391 bool name_changed_before_first_commit_ = false;
1392 1392
1393 bool browser_side_navigation_pending_ = false; 1393 bool browser_side_navigation_pending_ = false;
1394 1394
1395 // A bitwise OR of bindings types that have been enabled for this RenderFrame. 1395 // A bitwise OR of bindings types that have been enabled for this RenderFrame.
1396 // See BindingsPolicy for details. 1396 // See BindingsPolicy for details.
1397 int enabled_bindings_ = 0; 1397 int enabled_bindings_ = 0;
1398 1398
1399 // PlzNavigate:
1400 // Contains information about a pending navigation to be sent to the browser.
1401 // We save information about the navigation in decidePolicyForNavigation().
1402 // The navigation is sent to the browser in didStartProvisionalLoad().
1403 // Please see the BeginNavigation() for information.
1404 struct PendingNavigationInfo {
1405 blink::WebNavigationType navigation_type;
1406 blink::WebNavigationPolicy policy;
1407 bool replaces_current_history_item;
1408 bool history_navigation_in_new_child_frame;
1409 bool client_redirect;
1410 bool cache_disabled;
1411 blink::WebFormElement form;
1412
1413 PendingNavigationInfo(const NavigationPolicyInfo& info)
1414 : navigation_type(info.navigationType),
1415 policy(info.defaultPolicy),
1416 replaces_current_history_item(info.replacesCurrentHistoryItem),
1417 history_navigation_in_new_child_frame(
1418 info.isHistoryNavigationInNewChildFrame),
1419 client_redirect(info.isClientRedirect),
1420 cache_disabled(info.isCacheDisabled),
1421 form(info.form) {}
1422 };
1423
1424 // PlzNavigate: Contains information about a pending navigation to be sent to
1425 // the browser. This state is allocated in decidePolicyForNavigation() and
1426 // is used and released in didStartProvisionalLoad().
1427 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
1428
1399 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1429 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1400 1430
1401 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1431 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1402 }; 1432 };
1403 1433
1404 } // namespace content 1434 } // namespace content
1405 1435
1406 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1436 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | third_party/WebKit/public/web/WebDataSource.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698