summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 23:14:59 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 23:14:59 +0000
commit61424c0631ac4cc5838cf6a80406fc98ca60220d (patch)
tree773f1a61d46c82b01886ff9dfff318292f67d8fb /chrome/browser/extensions/extension_function.h
parent980656f5f9500c6a79152434652b8817dd6b7a03 (diff)
downloadchromium_src-61424c0631ac4cc5838cf6a80406fc98ca60220d.zip
chromium_src-61424c0631ac4cc5838cf6a80406fc98ca60220d.tar.gz
chromium_src-61424c0631ac4cc5838cf6a80406fc98ca60220d.tar.bz2
Small cleanup to extension function registration to avoid scattered definitions.
BUG=no Review URL: http://codereview.chromium.org/274059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function.h')
-rw-r--r--chrome/browser/extensions/extension_function.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h
index 238f8e4..6090f8a 100644
--- a/chrome/browser/extensions/extension_function.h
+++ b/chrome/browser/extensions/extension_function.h
@@ -22,6 +22,9 @@ class Profile;
} \
} while (0)
+#define DECLARE_EXTENSION_FUNCTION_NAME(name) \
+ public: static const char* function_name() { return name; }
+
// Abstract base class for extension functions the ExtensionFunctionDispatcher
// knows how to dispatch to.
//