Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_AP I_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_AP I_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "chrome/browser/extensions/chrome_extension_function.h" | |
| 10 #include "chrome/browser/extensions/extension_function_histogram_value.h" | |
| 11 #include "chrome/browser/sync/profile_sync_service_observer.h" | |
| 12 #include "extensions/browser/extension_function.h" | |
| 13 | |
| 14 namespace extensions { | |
| 15 | |
| 16 class PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction | |
| 17 : public ChromeAsyncExtensionFunction, public ProfileSyncServiceObserver { | |
| 18 public: | |
| 19 DECLARE_EXTENSION_FUNCTION( | |
| 20 "preferencesPrivate.getSyncCategoriesWithoutPassphrase", | |
| 21 PREFERENCESPRIVATE_GETSYNCCATEGORIESWITHOUTPASSPHRASE) | |
| 22 | |
| 23 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction(); | |
| 24 | |
| 25 // ExtensionFunction: | |
| 26 virtual void Run() OVERRIDE; | |
| 27 | |
| 28 // ProfileSyncServiceObserver: | |
| 29 virtual void OnStateChanged() OVERRIDE; | |
|
not at google - send to devlin
2013/12/18 22:30:37
these can be private
Rune Fevang
2013/12/19 00:13:43
Done.
| |
| 30 | |
| 31 protected: | |
| 32 virtual ~PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction(); | |
| 33 | |
| 34 // ExtensionFunction: | |
| 35 virtual bool RunImpl() OVERRIDE; | |
| 36 | |
| 37 private: | |
| 38 DISALLOW_COPY_AND_ASSIGN( | |
| 39 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction); | |
| 40 }; | |
| 41 | |
| 42 } // namespace extensions | |
| 43 | |
| 44 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE _API_H_ | |
| OLD | NEW |