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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1048463004: PlzNavigate: track pending commits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved state tracking to RFH Created 5 years, 8 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_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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 // is for closing the entire tab ( = false), or only this RenderFrameHost in 651 // is for closing the entire tab ( = false), or only this RenderFrameHost in
652 // the case of a navigation ( = true). Currently only cross-site navigations 652 // the case of a navigation ( = true). Currently only cross-site navigations
653 // require a beforeUnload/unload ACK. 653 // require a beforeUnload/unload ACK.
654 // PlzNavigate: all navigations require a beforeUnload ACK. 654 // PlzNavigate: all navigations require a beforeUnload ACK.
655 bool unload_ack_is_for_navigation_; 655 bool unload_ack_is_for_navigation_;
656 656
657 // Indicates whether this RenderFrameHost is in the process of loading a 657 // Indicates whether this RenderFrameHost is in the process of loading a
658 // document or not. 658 // document or not.
659 bool is_loading_; 659 bool is_loading_;
660 660
661 // PlzNavigate
662 // Used to track whether a commit is expected in this frame.
663 bool pending_commit_;
664
661 // Used to swap out or shut down this RFH when the unload event is taking too 665 // Used to swap out or shut down this RFH when the unload event is taking too
662 // long to execute, depending on the number of active frames in the 666 // long to execute, depending on the number of active frames in the
663 // SiteInstance. 667 // SiteInstance.
664 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; 668 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_;
665 669
666 scoped_ptr<ServiceRegistryImpl> service_registry_; 670 scoped_ptr<ServiceRegistryImpl> service_registry_;
667 671
668 #if defined(OS_ANDROID) 672 #if defined(OS_ANDROID)
669 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; 673 scoped_ptr<ServiceRegistryAndroid> service_registry_android_;
670 #endif 674 #endif
(...skipping 27 matching lines...) Expand all
698 702
699 // NOTE: This must be the last member. 703 // NOTE: This must be the last member.
700 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 704 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
701 705
702 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 706 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
703 }; 707 };
704 708
705 } // namespace content 709 } // namespace content
706 710
707 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 711 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698