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 SystemDragEnded() OVERRIDE; | 268 virtual void SystemDragEnded() OVERRIDE; |
272 virtual void UserGestureDone() OVERRIDE; | 269 virtual void UserGestureDone() OVERRIDE; |
273 virtual void SetClosedByUserGesture(bool value) OVERRIDE; | 270 virtual void SetClosedByUserGesture(bool value) OVERRIDE; |
274 virtual bool GetClosedByUserGesture() const OVERRIDE; | 271 virtual bool GetClosedByUserGesture() const OVERRIDE; |
275 virtual double GetZoomLevel() const OVERRIDE; | 272 virtual double GetZoomLevel() const OVERRIDE; |
276 virtual int GetZoomPercent(bool* enable_increment, | 273 virtual int GetZoomPercent(bool* enable_increment, |
277 bool* enable_decrement) const OVERRIDE; | 274 bool* enable_decrement) const OVERRIDE; |
278 virtual void ViewSource() OVERRIDE; | 275 virtual void ViewSource() OVERRIDE; |
279 virtual void ViewFrameSource(const GURL& url, | 276 virtual void ViewFrameSource(const GURL& url, |
280 const PageState& page_state) OVERRIDE; | 277 const PageState& page_state) OVERRIDE; |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 JavaScriptDialogManager* dialog_manager_; | 856 JavaScriptDialogManager* dialog_manager_; |
860 | 857 |
861 // Set to true when there is an active "before unload" dialog. When true, | 858 // Set to true when there is an active "before unload" dialog. When true, |
862 // we've forced the throbber to start in Navigate, and we need to remember to | 859 // we've forced the throbber to start in Navigate, and we need to remember to |
863 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. | 860 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. |
864 bool is_showing_before_unload_dialog_; | 861 bool is_showing_before_unload_dialog_; |
865 | 862 |
866 // Settings that get passed to the renderer process. | 863 // Settings that get passed to the renderer process. |
867 RendererPreferences renderer_preferences_; | 864 RendererPreferences renderer_preferences_; |
868 | 865 |
869 // The time that we started to create the new tab page. | |
870 base::TimeTicks new_tab_start_time_; | |
871 | |
872 // The time that we started to close this WebContents. | |
873 base::TimeTicks close_start_time_; | |
874 | |
875 // The time when onbeforeunload ended. | |
876 base::TimeTicks before_unload_end_time_; | |
877 | |
878 // The time that this tab was last selected. | 866 // The time that this tab was last selected. |
879 base::TimeTicks last_selected_time_; | 867 base::TimeTicks last_selected_time_; |
880 | 868 |
881 // See description above setter. | 869 // See description above setter. |
882 bool closed_by_user_gesture_; | 870 bool closed_by_user_gesture_; |
883 | 871 |
884 // Minimum/maximum zoom percent. | 872 // Minimum/maximum zoom percent. |
885 int minimum_zoom_percent_; | 873 int minimum_zoom_percent_; |
886 int maximum_zoom_percent_; | 874 int maximum_zoom_percent_; |
887 // If true, the default zoom limits have been overriden for this tab, in which | 875 // 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... |
939 // Maps the ids of pending image downloads to their callbacks | 927 // Maps the ids of pending image downloads to their callbacks |
940 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 928 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
941 ImageDownloadMap image_download_map_; | 929 ImageDownloadMap image_download_map_; |
942 | 930 |
943 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 931 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
944 }; | 932 }; |
945 | 933 |
946 } // namespace content | 934 } // namespace content |
947 | 935 |
948 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 936 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |