| OLD | NEW |
| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 const base::FilePath& file, | 257 const base::FilePath& file, |
| 258 const base::Callback<void(const base::FilePath&, int64)>& callback) | 258 const base::Callback<void(const base::FilePath&, int64)>& callback) |
| 259 OVERRIDE; | 259 OVERRIDE; |
| 260 virtual bool IsActiveEntry(int32 page_id) OVERRIDE; | 260 virtual bool IsActiveEntry(int32 page_id) OVERRIDE; |
| 261 | 261 |
| 262 virtual const std::string& GetContentsMimeType() const OVERRIDE; | 262 virtual const std::string& GetContentsMimeType() const OVERRIDE; |
| 263 virtual bool WillNotifyDisconnection() const OVERRIDE; | 263 virtual bool WillNotifyDisconnection() const OVERRIDE; |
| 264 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; | 264 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; |
| 265 virtual void ResetOverrideEncoding() OVERRIDE; | 265 virtual void ResetOverrideEncoding() OVERRIDE; |
| 266 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE; | 266 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE; |
| 267 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; | |
| 268 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; | |
| 269 virtual void Close() OVERRIDE; | 267 virtual void Close() OVERRIDE; |
| 270 virtual void OnCloseStarted() OVERRIDE; | |
| 271 virtual void OnCloseCanceled() OVERRIDE; | |
| 272 virtual void OnUnloadStarted() OVERRIDE; | |
| 273 virtual void OnUnloadDetachedStarted() OVERRIDE; | |
| 274 virtual void SystemDragEnded() OVERRIDE; | 268 virtual void SystemDragEnded() OVERRIDE; |
| 275 virtual void UserGestureDone() OVERRIDE; | 269 virtual void UserGestureDone() OVERRIDE; |
| 276 virtual void SetClosedByUserGesture(bool value) OVERRIDE; | 270 virtual void SetClosedByUserGesture(bool value) OVERRIDE; |
| 277 virtual bool GetClosedByUserGesture() const OVERRIDE; | 271 virtual bool GetClosedByUserGesture() const OVERRIDE; |
| 278 virtual double GetZoomLevel() const OVERRIDE; | 272 virtual double GetZoomLevel() const OVERRIDE; |
| 279 virtual int GetZoomPercent(bool* enable_increment, | 273 virtual int GetZoomPercent(bool* enable_increment, |
| 280 bool* enable_decrement) const OVERRIDE; | 274 bool* enable_decrement) const OVERRIDE; |
| 281 virtual void ViewSource() OVERRIDE; | 275 virtual void ViewSource() OVERRIDE; |
| 282 virtual void ViewFrameSource(const GURL& url, | 276 virtual void ViewFrameSource(const GURL& url, |
| 283 const PageState& page_state) OVERRIDE; | 277 const PageState& page_state) OVERRIDE; |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 JavaScriptDialogManager* dialog_manager_; | 857 JavaScriptDialogManager* dialog_manager_; |
| 864 | 858 |
| 865 // Set to true when there is an active "before unload" dialog. When true, | 859 // Set to true when there is an active "before unload" dialog. When true, |
| 866 // we've forced the throbber to start in Navigate, and we need to remember to | 860 // we've forced the throbber to start in Navigate, and we need to remember to |
| 867 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. | 861 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. |
| 868 bool is_showing_before_unload_dialog_; | 862 bool is_showing_before_unload_dialog_; |
| 869 | 863 |
| 870 // Settings that get passed to the renderer process. | 864 // Settings that get passed to the renderer process. |
| 871 RendererPreferences renderer_preferences_; | 865 RendererPreferences renderer_preferences_; |
| 872 | 866 |
| 873 // The time that we started to create the new tab page. | |
| 874 base::TimeTicks new_tab_start_time_; | |
| 875 | |
| 876 // The time that we started to close this WebContents. | |
| 877 base::TimeTicks close_start_time_; | |
| 878 | |
| 879 // The time when onbeforeunload ended. | |
| 880 base::TimeTicks before_unload_end_time_; | |
| 881 | |
| 882 // The time when the tab was removed from view during close. | |
| 883 base::TimeTicks unload_detached_start_time_; | |
| 884 | |
| 885 // The time that this tab was last selected. | 867 // The time that this tab was last selected. |
| 886 base::TimeTicks last_selected_time_; | 868 base::TimeTicks last_selected_time_; |
| 887 | 869 |
| 888 // See description above setter. | 870 // See description above setter. |
| 889 bool closed_by_user_gesture_; | 871 bool closed_by_user_gesture_; |
| 890 | 872 |
| 891 // Minimum/maximum zoom percent. | 873 // Minimum/maximum zoom percent. |
| 892 int minimum_zoom_percent_; | 874 int minimum_zoom_percent_; |
| 893 int maximum_zoom_percent_; | 875 int maximum_zoom_percent_; |
| 894 // If true, the default zoom limits have been overriden for this tab, in which | 876 // If true, the default zoom limits have been overriden for this tab, in which |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 // Maps the ids of pending image downloads to their callbacks | 928 // Maps the ids of pending image downloads to their callbacks |
| 947 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 929 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 948 ImageDownloadMap image_download_map_; | 930 ImageDownloadMap image_download_map_; |
| 949 | 931 |
| 950 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 932 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 951 }; | 933 }; |
| 952 | 934 |
| 953 } // namespace content | 935 } // namespace content |
| 954 | 936 |
| 955 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 937 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |