1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_
6 #define EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_
10 #include "extensions/renderer/object_backed_native_handler.h"
12 namespace extensions
{
14 class ProcessInfoNativeHandler
: public ObjectBackedNativeHandler
{
16 ProcessInfoNativeHandler(ScriptContext
* context
,
17 const std::string
& extension_id
,
18 const std::string
& context_type
,
19 bool is_incognito_context
,
21 bool send_request_disabled
);
24 void GetExtensionId(const v8::FunctionCallbackInfo
<v8::Value
>& args
);
25 void GetContextType(const v8::FunctionCallbackInfo
<v8::Value
>& args
);
26 void InIncognitoContext(const v8::FunctionCallbackInfo
<v8::Value
>& args
);
27 void GetManifestVersion(const v8::FunctionCallbackInfo
<v8::Value
>& args
);
28 void IsSendRequestDisabled(const v8::FunctionCallbackInfo
<v8::Value
>& args
);
29 void HasSwitch(const v8::FunctionCallbackInfo
<v8::Value
>& args
);
31 std::string extension_id_
;
32 std::string context_type_
;
33 bool is_incognito_context_
;
34 int manifest_version_
;
35 bool send_request_disabled_
;
38 } // namespace extensions
40 #endif // EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_