summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/app_launcher.h
blob: 5710a4e87060fff36b016e33a5fe5d29318461dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_
#define CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_

#include "base/basictypes.h"
#include "base/callback_forward.h"

namespace extensions {

// Called on the UI thread after determining if the launcher is enabled. A
// boolean flag is passed, which is true if the app launcher is enabled.
typedef base::Callback<void(bool)> OnAppLauncherEnabledCompleted;

// Determine whether the app launcher is enabled or not. This may involve a trip
// to a blocking thread. |completion_callback| is called when an answer is
// ready. This needs to be called on the UI thread.
void GetIsAppLauncherEnabled(
    const OnAppLauncherEnabledCompleted& completion_callback);

}  // namespace extensions

#endif  // CHROME_BROWSER_EXTENSIONS_APP_LAUNCHER_H_