summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/process_info_native_handler.h
diff options
context:
space:
mode:
authorrockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 17:29:13 +0000
committerrockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 17:29:13 +0000
commite6893672ec403d9dbf7fc5aab64ba6109ffd625a (patch)
tree25d46598e07af97d4f284663a3e3d53412e4eb2b /extensions/renderer/process_info_native_handler.h
parent3dfb202d7b2cbdb92b1fe9d6274211d823efebe8 (diff)
downloadchromium_src-e6893672ec403d9dbf7fc5aab64ba6109ffd625a.zip
chromium_src-e6893672ec403d9dbf7fc5aab64ba6109ffd625a.tar.gz
chromium_src-e6893672ec403d9dbf7fc5aab64ba6109ffd625a.tar.bz2
Pull chrome stuff out of (and move) extensions::Dispatcher.
This moves Dispatcher into //extensions along with several of its remaining dependencies. This also introduces a DispatcherDelegate interface along with implementations for chrome and app_shell. BUG=359836 TBR=sky for CCRC and ChromeRenderViewTest Review URL: https://codereview.chromium.org/260083006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/renderer/process_info_native_handler.h')
-rw-r--r--extensions/renderer/process_info_native_handler.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/extensions/renderer/process_info_native_handler.h b/extensions/renderer/process_info_native_handler.h
new file mode 100644
index 0000000..1f25269
--- /dev/null
+++ b/extensions/renderer/process_info_native_handler.h
@@ -0,0 +1,40 @@
+// Copyright 2014 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 EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_
+#define EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_
+
+#include <string>
+
+#include "extensions/renderer/object_backed_native_handler.h"
+
+namespace extensions {
+
+class ProcessInfoNativeHandler : public ObjectBackedNativeHandler {
+ public:
+ ProcessInfoNativeHandler(ScriptContext* context,
+ const std::string& extension_id,
+ const std::string& context_type,
+ bool is_incognito_context,
+ int manifest_version,
+ bool send_request_disabled);
+
+ private:
+ void GetExtensionId(const v8::FunctionCallbackInfo<v8::Value>& args);
+ void GetContextType(const v8::FunctionCallbackInfo<v8::Value>& args);
+ void InIncognitoContext(const v8::FunctionCallbackInfo<v8::Value>& args);
+ void GetManifestVersion(const v8::FunctionCallbackInfo<v8::Value>& args);
+ void IsSendRequestDisabled(const v8::FunctionCallbackInfo<v8::Value>& args);
+ void HasSwitch(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ std::string extension_id_;
+ std::string context_type_;
+ bool is_incognito_context_;
+ int manifest_version_;
+ bool send_request_disabled_;
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_