summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 19:56:17 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 19:56:17 +0000
commit11f48572859aca238afeb436d2504c5ffab49f07 (patch)
tree1b31af349eb99a9e83716f5add3273b42bee41cf /chrome/browser/automation
parentaf530ac147feb1b04446f529daa4cc4448f89b23 (diff)
downloadchromium_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')
-rw-r--r--chrome/browser/automation/automation_autocomplete_edit_tracker.h4
-rw-r--r--chrome/browser/automation/automation_browser_tracker.h4
-rw-r--r--chrome/browser/automation/automation_provider_list.h2
-rw-r--r--chrome/browser/automation/automation_resource_message_filter.h6
-rw-r--r--chrome/browser/automation/automation_resource_tracker.h12
-rw-r--r--chrome/browser/automation/automation_tab_tracker.h4
-rw-r--r--chrome/browser/automation/automation_window_tracker.h2
-rw-r--r--chrome/browser/automation/url_request_automation_job.h6
8 files changed, 20 insertions, 20 deletions
diff --git a/chrome/browser/automation/automation_autocomplete_edit_tracker.h b/chrome/browser/automation/automation_autocomplete_edit_tracker.h
index 4911ff7..3f741f3 100644
--- a/chrome/browser/automation/automation_autocomplete_edit_tracker.h
+++ b/chrome/browser/automation/automation_autocomplete_edit_tracker.h
@@ -10,8 +10,8 @@
#include "chrome/common/notification_source.h"
#include "chrome/common/notification_type.h"
-class AutomationAutocompleteEditTracker :
- public AutomationResourceTracker<AutocompleteEditView*> {
+class AutomationAutocompleteEditTracker
+ : public AutomationResourceTracker<AutocompleteEditView*> {
public:
explicit AutomationAutocompleteEditTracker(IPC::Message::Sender* automation)
: AutomationResourceTracker<AutocompleteEditView*>(automation) { }
diff --git a/chrome/browser/automation/automation_browser_tracker.h b/chrome/browser/automation/automation_browser_tracker.h
index e57e0e8..6d4aa9b 100644
--- a/chrome/browser/automation/automation_browser_tracker.h
+++ b/chrome/browser/automation/automation_browser_tracker.h
@@ -10,8 +10,8 @@
// Tracks Browser objects.
class AutomationBrowserTracker : public AutomationResourceTracker<Browser*> {
-public:
- AutomationBrowserTracker(IPC::Message::Sender* automation)
+ public:
+ explicit AutomationBrowserTracker(IPC::Message::Sender* automation)
: AutomationResourceTracker<Browser*>(automation) { }
virtual ~AutomationBrowserTracker() {
diff --git a/chrome/browser/automation/automation_provider_list.h b/chrome/browser/automation/automation_provider_list.h
index bedb6a6..4e4ca86 100644
--- a/chrome/browser/automation/automation_provider_list.h
+++ b/chrome/browser/automation/automation_provider_list.h
@@ -35,7 +35,7 @@ class AutomationProviderList {
static AutomationProviderList* GetInstance();
-private:
+ private:
AutomationProviderList();
void OnLastProviderRemoved();
list_type automation_providers_;
diff --git a/chrome/browser/automation/automation_resource_message_filter.h b/chrome/browser/automation/automation_resource_message_filter.h
index 7bb03d6..4625534 100644
--- a/chrome/browser/automation/automation_resource_message_filter.h
+++ b/chrome/browser/automation/automation_resource_message_filter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_
-#define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_
+#ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MESSAGE_FILTER_H_
+#define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MESSAGE_FILTER_H_
#include <map>
@@ -121,5 +121,5 @@ class AutomationResourceMessageFilter
DISALLOW_COPY_AND_ASSIGN(AutomationResourceMessageFilter);
};
-#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_
+#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MESSAGE_FILTER_H_
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();
diff --git a/chrome/browser/automation/automation_tab_tracker.h b/chrome/browser/automation/automation_tab_tracker.h
index 8137721..36c2bb9d 100644
--- a/chrome/browser/automation/automation_tab_tracker.h
+++ b/chrome/browser/automation/automation_tab_tracker.h
@@ -15,8 +15,8 @@
class AutomationTabTracker
: public AutomationResourceTracker<NavigationController*> {
-public:
- AutomationTabTracker(IPC::Message::Sender* automation)
+ public:
+ explicit AutomationTabTracker(IPC::Message::Sender* automation)
: AutomationResourceTracker<NavigationController*>(automation) {}
virtual ~AutomationTabTracker() {
diff --git a/chrome/browser/automation/automation_window_tracker.h b/chrome/browser/automation/automation_window_tracker.h
index 0823634..c69673e 100644
--- a/chrome/browser/automation/automation_window_tracker.h
+++ b/chrome/browser/automation/automation_window_tracker.h
@@ -13,7 +13,7 @@
class AutomationWindowTracker
: public AutomationResourceTracker<gfx::NativeWindow> {
public:
- AutomationWindowTracker(IPC::Message::Sender* automation)
+ explicit AutomationWindowTracker(IPC::Message::Sender* automation)
: AutomationResourceTracker<gfx::NativeWindow>(automation) { }
virtual ~AutomationWindowTracker() {
}
diff --git a/chrome/browser/automation/url_request_automation_job.h b/chrome/browser/automation/url_request_automation_job.h
index 5865fb3..824b80c 100644
--- a/chrome/browser/automation/url_request_automation_job.h
+++ b/chrome/browser/automation/url_request_automation_job.h
@@ -3,8 +3,8 @@
// found in the LICENSE file.
// This class simulates what wininet does when a dns lookup fails.
-#ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_URL_REQUEST_JOB_H_
-#define CHROME_BROWSER_AUTOMATION_AUTOMATION_URL_REQUEST_JOB_H_
+#ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_
+#define CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_
#include "chrome/common/ref_counted_util.h"
#include "net/http/http_response_headers.h"
@@ -92,5 +92,5 @@ class URLRequestAutomationJob : public URLRequestJob {
DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob);
};
-#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_URL_REQUEST_JOB_H_
+#endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_