| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // CEEE module-wide utilities. | 5 // CEEE module-wide utilities. |
| 6 | 6 |
| 7 #ifndef CEEE_IE_COMMON_TOOLBAND_MODULE_UTIL_H__ | 7 #ifndef CEEE_IE_COMMON_TOOLBAND_MODULE_UTIL_H__ |
| 8 #define CEEE_IE_COMMON_TOOLBAND_MODULE_UTIL_H__ | 8 #define CEEE_IE_COMMON_TOOLBAND_MODULE_UTIL_H__ |
| 9 | 9 |
| 10 #include <wtypes.h> | 10 #include <wtypes.h> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 | 15 |
| 16 namespace ceee_module_util { | 16 namespace ceee_module_util { |
| 17 | 17 |
| 18 void AddRefModuleWorkerThread(); | |
| 19 void ReleaseModuleWorkerThread(); | |
| 20 | |
| 21 // Fires an event to the broker, so that the call can be made with an | |
| 22 // instance of a broker proxy that was CoCreated in the worker thread. | |
| 23 void FireEventToBroker(const std::string& event_name, | |
| 24 const std::string& event_args); | |
| 25 | |
| 26 void Lock(); | 18 void Lock(); |
| 27 void Unlock(); | 19 void Unlock(); |
| 28 | 20 |
| 29 LONG LockModule(); | 21 LONG LockModule(); |
| 30 LONG UnlockModule(); | 22 LONG UnlockModule(); |
| 31 | 23 |
| 32 class AutoLock { | 24 class AutoLock { |
| 33 public: | 25 public: |
| 34 AutoLock() { | 26 AutoLock() { |
| 35 Lock(); | 27 Lock(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 87 |
| 96 // The name of the Internet Explorer executable. | 88 // The name of the Internet Explorer executable. |
| 97 extern const wchar_t kInternetExplorerModuleName[]; | 89 extern const wchar_t kInternetExplorerModuleName[]; |
| 98 | 90 |
| 99 // The name of the CEEE Broker executable. | 91 // The name of the CEEE Broker executable. |
| 100 extern const wchar_t kCeeeBrokerModuleName[]; | 92 extern const wchar_t kCeeeBrokerModuleName[]; |
| 101 | 93 |
| 102 } // namespace | 94 } // namespace |
| 103 | 95 |
| 104 #endif // CEEE_IE_COMMON_TOOLBAND_MODULE_UTIL_H__ | 96 #endif // CEEE_IE_COMMON_TOOLBAND_MODULE_UTIL_H__ |
| OLD | NEW |