| Index: chromeos/ime/component_extension_ime_manager.h
|
| diff --git a/chromeos/ime/component_extension_ime_manager.h b/chromeos/ime/component_extension_ime_manager.h
|
| index c455712d8f32ad952bc88df7cdb87b53e78682f8..7168aad4dd4602148ea3a0bd4b1e27d9302e777f 100644
|
| --- a/chromeos/ime/component_extension_ime_manager.h
|
| +++ b/chromeos/ime/component_extension_ime_manager.h
|
| @@ -13,6 +13,8 @@
|
| #include "chromeos/chromeos_export.h"
|
| #include "chromeos/ime/input_method_descriptor.h"
|
|
|
| +class Profile;
|
| +
|
| namespace chromeos {
|
|
|
| // Represents an engine in component extension IME.
|
| @@ -51,12 +53,14 @@ class CHROMEOS_EXPORT ComponentExtensionIMEManagerDelegate {
|
|
|
| // Loads component extension IME associated with |extension_id|.
|
| // Returns false if it fails, otherwise returns true.
|
| - virtual bool Load(const std::string& extension_id,
|
| + virtual bool Load(Profile* profile,
|
| + const std::string& extension_id,
|
| const std::string& manifest,
|
| const base::FilePath& path) = 0;
|
|
|
| // Unloads component extension IME associated with |extension_id|.
|
| - virtual void Unload(const std::string& extension_id,
|
| + virtual void Unload(Profile* profile,
|
| + const std::string& extension_id,
|
| const base::FilePath& path) = 0;
|
| };
|
|
|
| @@ -74,12 +78,14 @@ class CHROMEOS_EXPORT ComponentExtensionIMEManager {
|
| // Loads |input_method_id| component extension IME. This function returns true
|
| // on success. This function is safe to call multiple times. Returns false if
|
| // already corresponding component extension is loaded.
|
| - bool LoadComponentExtensionIME(const std::string& input_method_id);
|
| + bool LoadComponentExtensionIME(Profile* profile,
|
| + const std::string& input_method_id);
|
|
|
| // Unloads |input_method_id| component extension IME. This function returns
|
| // true on success. This function is safe to call multiple times. Returns
|
| // false if already corresponding component extension is unloaded.
|
| - bool UnloadComponentExtensionIME(const std::string& input_method_id);
|
| + bool UnloadComponentExtensionIME(Profile* profile,
|
| + const std::string& input_method_id);
|
|
|
| // Returns true if |input_method_id| is whitelisted component extension input
|
| // method.
|
|
|