OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP
L_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP
L_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP
L_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_IMP
L_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // kInputComponents key from manifest. This function returns true on success, | 56 // kInputComponents key from manifest. This function returns true on success, |
57 // otherwise retrun false. This function must be called on FILE thread. | 57 // otherwise retrun false. This function must be called on FILE thread. |
58 static bool ReadEngineComponent( | 58 static bool ReadEngineComponent( |
59 const ComponentExtensionIME& component_extension, | 59 const ComponentExtensionIME& component_extension, |
60 const base::DictionaryValue& dict, | 60 const base::DictionaryValue& dict, |
61 ComponentExtensionEngine* out); | 61 ComponentExtensionEngine* out); |
62 | 62 |
63 // The list of component extension IME. | 63 // The list of component extension IME. |
64 std::vector<ComponentExtensionIME> component_extension_list_; | 64 std::vector<ComponentExtensionIME> component_extension_list_; |
65 | 65 |
66 // For checking the function should be called on UI thread. | |
67 base::ThreadChecker thread_checker_; | |
68 base::WeakPtrFactory<ComponentExtensionIMEManagerImpl> weak_ptr_factory_; | |
69 | |
70 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManagerImpl); | 66 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManagerImpl); |
71 }; | 67 }; |
72 | 68 |
73 } // namespace chromeos | 69 } // namespace chromeos |
74 | 70 |
75 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_
IMPL_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_
IMPL_H_ |
76 | 72 |
OLD | NEW |