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

Unified Diff: content/browser/host_zoom_map_impl.h

Issue 9416070: Move creation and ownership of HostZoomMap to content instead of having every embedder do this. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac/cros browsertests Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/host_zoom_map_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/host_zoom_map_impl.h
===================================================================
--- content/browser/host_zoom_map_impl.h (revision 122827)
+++ content/browser/host_zoom_map_impl.h (working copy)
@@ -12,6 +12,7 @@
#include "base/compiler_specific.h"
#include "base/message_loop_helpers.h"
+#include "base/supports_user_data.h"
#include "base/synchronization/lock.h"
#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/notification_observer.h"
@@ -21,9 +22,11 @@
// to notifications on there (and holds a NotificationRegistrar).
class CONTENT_EXPORT HostZoomMapImpl
: public NON_EXPORTED_BASE(content::HostZoomMap),
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public base::SupportsUserData::Data {
public:
HostZoomMapImpl();
+ virtual ~HostZoomMapImpl();
// HostZoomMap implementation:
virtual void CopyFrom(HostZoomMap* copy) OVERRIDE;
@@ -56,8 +59,6 @@
private:
typedef std::map<std::string, double> HostZoomLevels;
- virtual ~HostZoomMapImpl();
-
// Copy of the pref data, so that we can read it on the IO thread.
HostZoomLevels host_zoom_levels_;
double default_zoom_level_;
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/host_zoom_map_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698