diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 19:56:17 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 19:56:17 +0000 |
commit | 11f48572859aca238afeb436d2504c5ffab49f07 (patch) | |
tree | 1b31af349eb99a9e83716f5add3273b42bee41cf /chrome/browser/automation/automation_resource_tracker.h | |
parent | af530ac147feb1b04446f529daa4cc4448f89b23 (diff) | |
download | chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.zip chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.tar.gz chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.tar.bz2 |
Fixes almost all of the rest of lint errors in the chrome/ directory (minus the really hard ones which will need actual review instead of rubber-stamping.)
Review URL: http://codereview.chromium.org/386026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_resource_tracker.h')
-rw-r--r-- | chrome/browser/automation/automation_resource_tracker.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/automation/automation_resource_tracker.h b/chrome/browser/automation/automation_resource_tracker.h index 9d3d137..8500aea 100644 --- a/chrome/browser/automation/automation_resource_tracker.h +++ b/chrome/browser/automation/automation_resource_tracker.h @@ -30,8 +30,8 @@ struct AutomationResourceTraits<T*> { // This class exists for the sole purpose of allowing some of the implementation // of AutomationResourceTracker to live in a .cc file. class AutomationResourceTrackerImpl { -public: - AutomationResourceTrackerImpl(IPC::Message::Sender* sender) + public: + explicit AutomationResourceTrackerImpl(IPC::Message::Sender* sender) : sender_(sender) {} virtual ~AutomationResourceTrackerImpl() {} @@ -51,13 +51,13 @@ public: int GetHandleImpl(void* resource); void HandleCloseNotification(void* resource); -protected: + protected: typedef std::map<void*, int> ResourceToHandleMap; typedef std::map<int, void*> HandleToResourceMap; ResourceToHandleMap resource_to_handle_; HandleToResourceMap handle_to_resource_; -private: + private: DISALLOW_EVIL_CONSTRUCTORS(AutomationResourceTrackerImpl); IPC::Message::Sender* sender_; @@ -72,7 +72,7 @@ template <class T> class AutomationResourceTracker : public NotificationObserver, private AutomationResourceTrackerImpl { public: - AutomationResourceTracker(IPC::Message::Sender* automation) + explicit AutomationResourceTracker(IPC::Message::Sender* automation) : AutomationResourceTrackerImpl(automation) {} virtual ~AutomationResourceTracker() { @@ -125,7 +125,7 @@ class AutomationResourceTracker : public NotificationObserver, // that the associated handle is now invalid. virtual void Observe(NotificationType type, const NotificationSource& source, - const NotificationDetails& details){ + const NotificationDetails& details) { T resource = Source<typename AutomationResourceTraits<T>::ValueType>(source).ptr(); |