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

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

Issue 17151010: Move histograms and supporting code that don't belong in content out. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Created 7 years, 6 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 JavaScriptDialogManager* dialog_manager_; 855 JavaScriptDialogManager* dialog_manager_;
862 856
863 // Set to true when there is an active "before unload" dialog. When true, 857 // Set to true when there is an active "before unload" dialog. When true,
864 // we've forced the throbber to start in Navigate, and we need to remember to 858 // we've forced the throbber to start in Navigate, and we need to remember to
865 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. 859 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled.
866 bool is_showing_before_unload_dialog_; 860 bool is_showing_before_unload_dialog_;
867 861
868 // Settings that get passed to the renderer process. 862 // Settings that get passed to the renderer process.
869 RendererPreferences renderer_preferences_; 863 RendererPreferences renderer_preferences_;
870 864
871 // The time that we started to create the new tab page.
872 base::TimeTicks new_tab_start_time_;
873
874 // The time that we started to close this WebContents.
875 base::TimeTicks close_start_time_;
876
877 // The time when onbeforeunload ended.
878 base::TimeTicks before_unload_end_time_;
879
880 // The time when the tab was removed from view during close.
881 base::TimeTicks unload_detached_start_time_;
882
883 // The time that this tab was last selected. 865 // The time that this tab was last selected.
884 base::TimeTicks last_selected_time_; 866 base::TimeTicks last_selected_time_;
885 867
886 // See description above setter. 868 // See description above setter.
887 bool closed_by_user_gesture_; 869 bool closed_by_user_gesture_;
888 870
889 // Minimum/maximum zoom percent. 871 // Minimum/maximum zoom percent.
890 int minimum_zoom_percent_; 872 int minimum_zoom_percent_;
891 int maximum_zoom_percent_; 873 int maximum_zoom_percent_;
892 // If true, the default zoom limits have been overriden for this tab, in which 874 // 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
944 // Maps the ids of pending image downloads to their callbacks 926 // Maps the ids of pending image downloads to their callbacks
945 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 927 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
946 ImageDownloadMap image_download_map_; 928 ImageDownloadMap image_download_map_;
947 929
948 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 930 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
949 }; 931 };
950 932
951 } // namespace content 933 } // namespace content
952 934
953 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 935 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698