Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / api / preferences_private / preferences_private_api.h
blob5e8a37b6963bbc7ae556675d5c3c3ef20cca2894
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 "components/sync_driver/sync_service_observer.h"
11 #include "extensions/browser/extension_function.h"
13 namespace extensions {
15 class PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction
16 : public ChromeAsyncExtensionFunction,
17 public sync_driver::SyncServiceObserver {
18 public:
19 DECLARE_EXTENSION_FUNCTION(
20 "preferencesPrivate.getSyncCategoriesWithoutPassphrase",
21 PREFERENCESPRIVATE_GETSYNCCATEGORIESWITHOUTPASSPHRASE)
23 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction();
25 protected:
26 ~PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction() override;
28 private:
29 // sync_driver::SyncServiceObserver:
30 void OnStateChanged() override;
32 // ExtensionFunction:
33 bool RunAsync() override;
35 DISALLOW_COPY_AND_ASSIGN(
36 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction);
39 } // namespace extensions
41 #endif // CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_API_H_