app_list: Re-enable people search.
[chromium-blink-merge.git] / chrome / browser / extensions / api / preferences_private / preferences_private_api.h
blobf1f2ffa8c07f3df2d7d0f0f09437118867a8d4e6
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_API_H_
8 #include "base/basictypes.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/browser/sync/profile_sync_service_observer.h"
11 #include "extensions/browser/extension_function.h"
13 namespace extensions {
15 class PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction
16 : public ChromeAsyncExtensionFunction, public ProfileSyncServiceObserver {
17 public:
18 DECLARE_EXTENSION_FUNCTION(
19 "preferencesPrivate.getSyncCategoriesWithoutPassphrase",
20 PREFERENCESPRIVATE_GETSYNCCATEGORIESWITHOUTPASSPHRASE)
22 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction();
24 protected:
25 ~PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction() override;
27 private:
28 // ProfileSyncServiceObserver:
29 void OnStateChanged() override;
31 // ExtensionFunction:
32 bool RunAsync() override;
34 DISALLOW_COPY_AND_ASSIGN(
35 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction);
38 } // namespace extensions
40 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_API_H_