summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_history_api.h
diff options
context:
space:
mode:
authormihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 22:52:54 +0000
committermihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 22:52:54 +0000
commit1790275fe70ec6f824a34632f2101b5256e5d218 (patch)
tree9877f7b7c8b25d7d2a0d7444e3703614b39663a5 /chrome/browser/extensions/extension_history_api.h
parentb32613252ab076e3ac26d7ecb1c5af383de64da1 (diff)
downloadchromium_src-1790275fe70ec6f824a34632f2101b5256e5d218.zip
chromium_src-1790275fe70ec6f824a34632f2101b5256e5d218.tar.gz
chromium_src-1790275fe70ec6f824a34632f2101b5256e5d218.tar.bz2
Remove obsolete TODO and add a bunch of OVERRIDEs.
R=aa@chromium.org Review URL: http://codereview.chromium.org/7806009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_history_api.h')
-rw-r--r--chrome/browser/extensions/extension_history_api.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/chrome/browser/extensions/extension_history_api.h b/chrome/browser/extensions/extension_history_api.h
index af57c6b..a7ec19a 100644
--- a/chrome/browser/extensions/extension_history_api.h
+++ b/chrome/browser/extensions/extension_history_api.h
@@ -8,6 +8,7 @@
#include <string>
+#include "base/compiler_specific.h"
#include "chrome/browser/extensions/extension_function.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/history/history_notifications.h"
@@ -26,7 +27,7 @@ class ExtensionHistoryEventRouter : public NotificationObserver {
// NotificationObserver::Observe.
virtual void Observe(int type,
const NotificationSource& source,
- const NotificationDetails& details);
+ const NotificationDetails& details) OVERRIDE;
void HistoryUrlVisited(Profile* profile,
const history::URLVisitedDetails* details);
@@ -48,7 +49,7 @@ class ExtensionHistoryEventRouter : public NotificationObserver {
// Base class for history function APIs.
class HistoryFunction : public AsyncExtensionFunction {
public:
- virtual void Run();
+ virtual void Run() OVERRIDE;
virtual bool RunImpl() = 0;
bool GetUrlFromValue(base::Value* value, GURL* url);
@@ -70,7 +71,7 @@ class HistoryFunctionWithCallback : public HistoryFunction {
virtual void SendAsyncResponse();
// Override HistoryFunction::RunImpl.
- virtual bool RunImpl();
+ virtual bool RunImpl() OVERRIDE;
protected:
// The consumer for the HistoryService callbacks.
@@ -85,7 +86,7 @@ class HistoryFunctionWithCallback : public HistoryFunction {
class GetVisitsHistoryFunction : public HistoryFunctionWithCallback {
public:
// Override HistoryFunction.
- virtual bool RunAsyncImpl();
+ virtual bool RunAsyncImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("history.getVisits");
// Callback for the history function to provide results.
@@ -97,7 +98,7 @@ class GetVisitsHistoryFunction : public HistoryFunctionWithCallback {
class SearchHistoryFunction : public HistoryFunctionWithCallback {
public:
- virtual bool RunAsyncImpl();
+ virtual bool RunAsyncImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("history.search");
// Callback for the history function to provide results.
@@ -107,13 +108,13 @@ class SearchHistoryFunction : public HistoryFunctionWithCallback {
class AddUrlHistoryFunction : public HistoryFunction {
public:
- virtual bool RunImpl();
+ virtual bool RunImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("history.addUrl");
};
class DeleteAllHistoryFunction : public HistoryFunctionWithCallback {
public:
- virtual bool RunAsyncImpl();
+ virtual bool RunAsyncImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("history.deleteAll");
// Callback for the history service to acknowledge deletion.
@@ -123,13 +124,13 @@ class DeleteAllHistoryFunction : public HistoryFunctionWithCallback {
class DeleteUrlHistoryFunction : public HistoryFunction {
public:
- virtual bool RunImpl();
+ virtual bool RunImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("history.deleteUrl");
};
class DeleteRangeHistoryFunction : public HistoryFunctionWithCallback {
public:
- virtual bool RunAsyncImpl();
+ virtual bool RunAsyncImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("history.deleteRange");
// Callback for the history service to acknowledge deletion.