summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function_dispatcher.cc
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-28 17:29:35 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-28 17:29:35 +0000
commit381162b2224c18d592e077aae94343cb73296bb9 (patch)
tree4fe4fa6efe4a65f66c824d2298d538ffd9d98011 /chrome/browser/extensions/extension_function_dispatcher.cc
parent9ad59068b7c34cae14bd70e01cef2adb1d617409 (diff)
downloadchromium_src-381162b2224c18d592e077aae94343cb73296bb9.zip
chromium_src-381162b2224c18d592e077aae94343cb73296bb9.tar.gz
chromium_src-381162b2224c18d592e077aae94343cb73296bb9.tar.bz2
Adds an experimental processes module to the extensions API.
This first step adds only a Process object with an id, along with a getProcessForTab function. BUG=32303 TEST=browser_test.exe --gtest_filter=ExtensionAPITest.Processes Review URL: http://codereview.chromium.org/551090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37411 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.cc')
-rw-r--r--chrome/browser/extensions/extension_function_dispatcher.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index c5248cf..ba85956 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -23,6 +23,7 @@
#include "chrome/browser/extensions/extension_page_actions_module_constants.h"
#include "chrome/browser/extensions/extension_popup_api.h"
#include "chrome/browser/extensions/extension_process_manager.h"
+#include "chrome/browser/extensions/extension_processes_api.h"
#include "chrome/browser/extensions/extension_tabs_module.h"
#include "chrome/browser/extensions/extension_tabs_module_constants.h"
#include "chrome/browser/extensions/extension_test_api.h"
@@ -159,6 +160,9 @@ void FactoryRegistry::ResetFunctions() {
// Popup API.
RegisterFunction<PopupShowFunction>();
+ // Processes.
+ RegisterFunction<GetProcessForTabFunction>();
+
// Test.
RegisterFunction<ExtensionTestPassFunction>();
RegisterFunction<ExtensionTestFailFunction>();