summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_processes_api.h
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_processes_api.h
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_processes_api.h')
-rw-r--r--chrome/browser/extensions/extension_processes_api.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_processes_api.h b/chrome/browser/extensions/extension_processes_api.h
new file mode 100644
index 0000000..08b983b
--- /dev/null
+++ b/chrome/browser/extensions/extension_processes_api.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
+
+#include "chrome/browser/extensions/extension_function.h"
+
+// This extension function returns the Process object for the renderer process
+// currently in use by the specified Tab.
+class GetProcessForTabFunction : public SyncExtensionFunction {
+ virtual ~GetProcessForTabFunction() {}
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.processes.getProcessForTab")
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__