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

Side by Side Diff: trunk/src/content/browser/web_contents/web_contents_impl.h

Issue 14362028: Speculative Revert 195108 "Changes to closing contents with beforeunload/unl..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 virtual const std::string& GetContentsMimeType() const OVERRIDE; 239 virtual const std::string& GetContentsMimeType() const OVERRIDE;
240 virtual bool WillNotifyDisconnection() const OVERRIDE; 240 virtual bool WillNotifyDisconnection() const OVERRIDE;
241 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; 241 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE;
242 virtual void ResetOverrideEncoding() OVERRIDE; 242 virtual void ResetOverrideEncoding() OVERRIDE;
243 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE; 243 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE;
244 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; 244 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE;
245 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; 245 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE;
246 virtual void Close() OVERRIDE; 246 virtual void Close() OVERRIDE;
247 virtual void OnCloseStarted() OVERRIDE; 247 virtual void OnCloseStarted() OVERRIDE;
248 virtual void OnCloseCanceled() OVERRIDE;
249 virtual void OnUnloadStarted() OVERRIDE;
250 virtual void OnUnloadDetachedStarted() OVERRIDE;
251 virtual void SystemDragEnded() OVERRIDE; 248 virtual void SystemDragEnded() OVERRIDE;
252 virtual void UserGestureDone() OVERRIDE; 249 virtual void UserGestureDone() OVERRIDE;
253 virtual void SetClosedByUserGesture(bool value) OVERRIDE; 250 virtual void SetClosedByUserGesture(bool value) OVERRIDE;
254 virtual bool GetClosedByUserGesture() const OVERRIDE; 251 virtual bool GetClosedByUserGesture() const OVERRIDE;
255 virtual double GetZoomLevel() const OVERRIDE; 252 virtual double GetZoomLevel() const OVERRIDE;
256 virtual int GetZoomPercent(bool* enable_increment, 253 virtual int GetZoomPercent(bool* enable_increment,
257 bool* enable_decrement) const OVERRIDE; 254 bool* enable_decrement) const OVERRIDE;
258 virtual void ViewSource() OVERRIDE; 255 virtual void ViewSource() OVERRIDE;
259 virtual void ViewFrameSource(const GURL& url, 256 virtual void ViewFrameSource(const GURL& url,
260 const std::string& content_state) OVERRIDE; 257 const std::string& content_state) OVERRIDE;
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 811
815 // The time that we started to create the new tab page. 812 // The time that we started to create the new tab page.
816 base::TimeTicks new_tab_start_time_; 813 base::TimeTicks new_tab_start_time_;
817 814
818 // The time that we started to close this WebContents. 815 // The time that we started to close this WebContents.
819 base::TimeTicks close_start_time_; 816 base::TimeTicks close_start_time_;
820 817
821 // The time when onbeforeunload ended. 818 // The time when onbeforeunload ended.
822 base::TimeTicks before_unload_end_time_; 819 base::TimeTicks before_unload_end_time_;
823 820
824 // The time when the tab was removed from view during close.
825 base::TimeTicks unload_detached_start_time_;
826
827 // The time that this tab was last selected. 821 // The time that this tab was last selected.
828 base::TimeTicks last_selected_time_; 822 base::TimeTicks last_selected_time_;
829 823
830 // See description above setter. 824 // See description above setter.
831 bool closed_by_user_gesture_; 825 bool closed_by_user_gesture_;
832 826
833 // Minimum/maximum zoom percent. 827 // Minimum/maximum zoom percent.
834 int minimum_zoom_percent_; 828 int minimum_zoom_percent_;
835 int maximum_zoom_percent_; 829 int maximum_zoom_percent_;
836 // If true, the default zoom limits have been overriden for this tab, in which 830 // If true, the default zoom limits have been overriden for this tab, in which
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 // Maps the ids of pending image downloads to their callbacks 873 // Maps the ids of pending image downloads to their callbacks
880 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 874 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
881 ImageDownloadMap image_download_map_; 875 ImageDownloadMap image_download_map_;
882 876
883 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 877 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
884 }; 878 };
885 879
886 } // namespace content 880 } // namespace content
887 881
888 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 882 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698