| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 5 #ifndef REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 uint32_t arg_count, | 42 uint32_t arg_count, |
| 43 NPVariant* result); | 43 NPVariant* result); |
| 44 bool HasProperty(const std::string& property_name); | 44 bool HasProperty(const std::string& property_name); |
| 45 bool GetProperty(const std::string& property_name, NPVariant* result); | 45 bool GetProperty(const std::string& property_name, NPVariant* result); |
| 46 bool SetProperty(const std::string& property_name, const NPVariant* value); | 46 bool SetProperty(const std::string& property_name, const NPVariant* value); |
| 47 bool RemoveProperty(const std::string& property_name); | 47 bool RemoveProperty(const std::string& property_name); |
| 48 bool Enumerate(std::vector<std::string>* values); | 48 bool Enumerate(std::vector<std::string>* values); |
| 49 | 49 |
| 50 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). | 50 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). |
| 51 // This should only be called by HostLogHandler. To log to the UI, use the | 51 // This should only be called by HostLogHandler. To log to the UI, use the |
| 52 // standard LOG(INFO) and it will be sent to this method. | 52 // standard HOST_LOG and it will be sent to this method. |
| 53 void PostLogDebugInfo(const std::string& message); | 53 void PostLogDebugInfo(const std::string& message); |
| 54 | 54 |
| 55 void SetWindow(NPWindow* np_window); | 55 void SetWindow(NPWindow* np_window); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 ////////////////////////////////////////////////////////// | 58 ////////////////////////////////////////////////////////// |
| 59 // Plugin methods for It2Me host. | 59 // Plugin methods for It2Me host. |
| 60 | 60 |
| 61 // Start connection. args are: | 61 // Start connection. args are: |
| 62 // string uid, string auth_token | 62 // string uid, string auth_token |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Used to cancel pending tasks for this object when it is destroyed. | 304 // Used to cancel pending tasks for this object when it is destroyed. |
| 305 base::WeakPtr<HostNPScriptObject> weak_ptr_; | 305 base::WeakPtr<HostNPScriptObject> weak_ptr_; |
| 306 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; | 306 base::WeakPtrFactory<HostNPScriptObject> weak_factory_; |
| 307 | 307 |
| 308 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); | 308 DISALLOW_COPY_AND_ASSIGN(HostNPScriptObject); |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 } // namespace remoting | 311 } // namespace remoting |
| 312 | 312 |
| 313 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ | 313 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ |
| OLD | NEW |