| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 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_APP_LAUNCHER_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/callback_forward.h" | |
| 10 | |
| 11 class PrefRegistrySimple; | |
| 12 | |
| 13 namespace extensions { | |
| 14 | |
| 15 // Called on the UI thread after determining if the launcher is enabled. A | |
| 16 // boolean flag is passed, which is true if the app launcher is enabled. | |
| 17 typedef base::Callback<void(bool)> OnAppLauncherEnabledCompleted; | |
| 18 | |
| 19 // Determine whether the app launcher is enabled or not. This may involve a trip | |
| 20 // to a blocking thread. |completion_callback| is called when an answer is | |
| 21 // ready. This needs to be called on the UI thread. | |
| 22 void UpdateIsAppLauncherEnabled( | |
| 23 const OnAppLauncherEnabledCompleted& completion_callback); | |
| 24 | |
| 25 // returns value of pref. 'was app launcher enabled last time i checked'. | |
| 26 bool IsAppLauncherEnabled(); | |
| 27 | |
| 28 namespace app_launcher { | |
| 29 void RegisterPrefs(PrefRegistrySimple* registry); | |
| 30 } | |
| 31 | |
| 32 } // namespace extensions | |
| 33 | |
| 34 #endif // CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_ | |
| OLD | NEW |