Reland the ULONG -> SIZE_T change from 317177
[chromium-blink-merge.git] / extensions / renderer / process_info_native_handler.h
blobdcde43008073069ba80bd0ad5a747f69c7546b06
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_
8 #include <string>
10 #include "extensions/renderer/object_backed_native_handler.h"
12 namespace extensions {
14 class ProcessInfoNativeHandler : public ObjectBackedNativeHandler {
15 public:
16 ProcessInfoNativeHandler(ScriptContext* context,
17 const std::string& extension_id,
18 const std::string& context_type,
19 bool is_incognito_context,
20 bool is_component_extension,
21 int manifest_version,
22 bool send_request_disabled);
24 private:
25 void GetExtensionId(const v8::FunctionCallbackInfo<v8::Value>& args);
26 void GetContextType(const v8::FunctionCallbackInfo<v8::Value>& args);
27 void InIncognitoContext(const v8::FunctionCallbackInfo<v8::Value>& args);
28 void IsComponentExtension(const v8::FunctionCallbackInfo<v8::Value>& args);
29 void GetManifestVersion(const v8::FunctionCallbackInfo<v8::Value>& args);
30 void IsSendRequestDisabled(const v8::FunctionCallbackInfo<v8::Value>& args);
31 void HasSwitch(const v8::FunctionCallbackInfo<v8::Value>& args);
33 std::string extension_id_;
34 std::string context_type_;
35 bool is_incognito_context_;
36 bool is_component_extension_;
37 int manifest_version_;
38 bool send_request_disabled_;
41 } // namespace extensions
43 #endif // EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_