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 CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 // Returns the ibus engine factory service, owned by DBusThreadManager. Do not | 238 // Returns the ibus engine factory service, owned by DBusThreadManager. Do not |
239 // cache this pointer and use it after DBusThreadManager is shut down. | 239 // cache this pointer and use it after DBusThreadManager is shut down. |
240 virtual IBusEngineFactoryService* GetIBusEngineFactoryService() = 0; | 240 virtual IBusEngineFactoryService* GetIBusEngineFactoryService() = 0; |
241 | 241 |
242 // Returns the ibus engine service, owned by DBusThreadManager. Do not cache | 242 // Returns the ibus engine service, owned by DBusThreadManager. Do not cache |
243 // this pointer and use it after DBusThreadManager is shut down. | 243 // this pointer and use it after DBusThreadManager is shut down. |
244 virtual IBusEngineService* GetIBusEngineService( | 244 virtual IBusEngineService* GetIBusEngineService( |
245 const dbus::ObjectPath& object_path) = 0; | 245 const dbus::ObjectPath& object_path) = 0; |
246 | 246 |
| 247 // Removes the ibus engine services for |object_path|. |
| 248 virtual void RemoveIBusEngineService(const dbus::ObjectPath& object_path) = 0; |
| 249 |
247 virtual ~DBusThreadManager(); | 250 virtual ~DBusThreadManager(); |
248 | 251 |
249 protected: | 252 protected: |
250 DBusThreadManager(); | 253 DBusThreadManager(); |
251 | 254 |
252 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 255 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
253 }; | 256 }; |
254 | 257 |
255 } // namespace chromeos | 258 } // namespace chromeos |
256 | 259 |
257 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 260 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
OLD | NEW |