Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 28 matching lines...) Expand all
39 39
40 static bool IsIMEExtensionID(const std::string& id); 40 static bool IsIMEExtensionID(const std::string& id);
41 41
42 private: 42 private:
43 // Reads component extensions and extract their localized information: name, 43 // Reads component extensions and extract their localized information: name,
44 // description and ime id. This function fills them into |out_imes|. 44 // description and ime id. This function fills them into |out_imes|.
45 static void ReadComponentExtensionsInfo( 45 static void ReadComponentExtensionsInfo(
46 std::vector<ComponentExtensionIME>* out_imes); 46 std::vector<ComponentExtensionIME>* out_imes);
47 47
48 // Parses manifest string to manifest json dictionary value. 48 // Parses manifest string to manifest json dictionary value.
49 static scoped_ptr<base::DictionaryValue> GetManifest( 49 static std::unique_ptr<base::DictionaryValue> GetManifest(
50 const std::string& manifest_string); 50 const std::string& manifest_string);
51 51
52 // Reads extension information: description, option page. This function 52 // Reads extension information: description, option page. This function
53 // returns true on success, otherwise returns false. 53 // returns true on success, otherwise returns false.
54 static bool ReadExtensionInfo(const base::DictionaryValue& manifest, 54 static bool ReadExtensionInfo(const base::DictionaryValue& manifest,
55 const std::string& extension_id, 55 const std::string& extension_id,
56 ComponentExtensionIME* out); 56 ComponentExtensionIME* out);
57 57
58 // Reads each engine component in |dict|. |dict| is given by GetList with 58 // Reads each engine component in |dict|. |dict| is given by GetList with
59 // kInputComponents key from manifest. This function returns true on success, 59 // kInputComponents key from manifest. This function returns true on success,
60 // otherwise retrun false. This function must be called on FILE thread. 60 // otherwise retrun false. This function must be called on FILE thread.
61 static bool ReadEngineComponent( 61 static bool ReadEngineComponent(
62 const ComponentExtensionIME& component_extension, 62 const ComponentExtensionIME& component_extension,
63 const base::DictionaryValue& dict, 63 const base::DictionaryValue& dict,
64 ComponentExtensionEngine* out); 64 ComponentExtensionEngine* out);
65 65
66 // The list of component extension IME. 66 // The list of component extension IME.
67 std::vector<ComponentExtensionIME> component_extension_list_; 67 std::vector<ComponentExtensionIME> component_extension_list_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManagerImpl); 69 DISALLOW_COPY_AND_ASSIGN(ComponentExtensionIMEManagerImpl);
70 }; 70 };
71 71
72 } // namespace chromeos 72 } // namespace chromeos
73 73
74 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_ IMPL_H_ 74 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_COMPONENT_EXTENSION_IME_MANAGER_ IMPL_H_
75 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698