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

Side by Side Diff: chrome/browser/extensions/api/language_settings_private/language_settings_private_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING S_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING S_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING S_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETTING S_PRIVATE_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/extensions/chrome_extension_function_details.h" 9 #include "chrome/browser/extensions/chrome_extension_function_details.h"
10 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h" 10 #include "chrome/browser/spellchecker/spellcheck_custom_dictionary.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // ExtensionFunction overrides. 86 // ExtensionFunction overrides.
87 ResponseAction Run() override; 87 ResponseAction Run() override;
88 88
89 // SpellcheckCustomDictionary::Observer overrides. 89 // SpellcheckCustomDictionary::Observer overrides.
90 void OnCustomDictionaryLoaded() override; 90 void OnCustomDictionaryLoaded() override;
91 void OnCustomDictionaryChanged( 91 void OnCustomDictionaryChanged(
92 const SpellcheckCustomDictionary::Change& dictionary_change) override; 92 const SpellcheckCustomDictionary::Change& dictionary_change) override;
93 93
94 // Returns the list of words from the loaded custom dictionary. 94 // Returns the list of words from the loaded custom dictionary.
95 scoped_ptr<base::ListValue> GetSpellcheckWords() const; 95 std::unique_ptr<base::ListValue> GetSpellcheckWords() const;
96 96
97 private: 97 private:
98 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateGetSpellcheckWordsFunction); 98 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateGetSpellcheckWordsFunction);
99 }; 99 };
100 100
101 // Implements the languageSettingsPrivate.addSpellcheckWord method. 101 // Implements the languageSettingsPrivate.addSpellcheckWord method.
102 class LanguageSettingsPrivateAddSpellcheckWordFunction 102 class LanguageSettingsPrivateAddSpellcheckWordFunction
103 : public UIThreadExtensionFunction { 103 : public UIThreadExtensionFunction {
104 public: 104 public:
105 LanguageSettingsPrivateAddSpellcheckWordFunction(); 105 LanguageSettingsPrivateAddSpellcheckWordFunction();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // ExtensionFunction overrides. 206 // ExtensionFunction overrides.
207 ResponseAction Run() override; 207 ResponseAction Run() override;
208 208
209 private: 209 private:
210 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateRemoveInputMethodFunction); 210 DISALLOW_COPY_AND_ASSIGN(LanguageSettingsPrivateRemoveInputMethodFunction);
211 }; 211 };
212 212
213 } // namespace extensions 213 } // namespace extensions
214 214
215 #endif // CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETT INGS_PRIVATE_API_H_ 215 #endif // CHROME_BROWSER_EXTENSIONS_API_LANGUAGE_SETTINGS_PRIVATE_LANGUAGE_SETT INGS_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698