OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_ | 5 #ifndef EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_ |
6 #define EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_ | 6 #define EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/renderer/object_backed_native_handler.h" | 10 #include "extensions/renderer/object_backed_native_handler.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 bool send_request_disabled); | 22 bool send_request_disabled); |
23 | 23 |
24 private: | 24 private: |
25 void GetExtensionId(const v8::FunctionCallbackInfo<v8::Value>& args); | 25 void GetExtensionId(const v8::FunctionCallbackInfo<v8::Value>& args); |
26 void GetContextType(const v8::FunctionCallbackInfo<v8::Value>& args); | 26 void GetContextType(const v8::FunctionCallbackInfo<v8::Value>& args); |
27 void InIncognitoContext(const v8::FunctionCallbackInfo<v8::Value>& args); | 27 void InIncognitoContext(const v8::FunctionCallbackInfo<v8::Value>& args); |
28 void IsComponentExtension(const v8::FunctionCallbackInfo<v8::Value>& args); | 28 void IsComponentExtension(const v8::FunctionCallbackInfo<v8::Value>& args); |
29 void GetManifestVersion(const v8::FunctionCallbackInfo<v8::Value>& args); | 29 void GetManifestVersion(const v8::FunctionCallbackInfo<v8::Value>& args); |
30 void IsSendRequestDisabled(const v8::FunctionCallbackInfo<v8::Value>& args); | 30 void IsSendRequestDisabled(const v8::FunctionCallbackInfo<v8::Value>& args); |
31 void HasSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); | 31 void HasSwitch(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 32 void GetPlatform(const v8::FunctionCallbackInfo<v8::Value>& args); |
32 | 33 |
33 std::string extension_id_; | 34 std::string extension_id_; |
34 std::string context_type_; | 35 std::string context_type_; |
35 bool is_incognito_context_; | 36 bool is_incognito_context_; |
36 bool is_component_extension_; | 37 bool is_component_extension_; |
37 int manifest_version_; | 38 int manifest_version_; |
38 bool send_request_disabled_; | 39 bool send_request_disabled_; |
39 }; | 40 }; |
40 | 41 |
41 } // namespace extensions | 42 } // namespace extensions |
42 | 43 |
43 #endif // EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_ | 44 #endif // EXTENSIONS_RENDERER_PROCESS_INFO_NATIVE_HANDLER_H_ |
OLD | NEW |