OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 | |
11 #include "chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h" | |
12 | |
13 class Profile; | |
14 class TabContents; | |
15 | |
16 // Default implementation of LauncherUpdater::AppTabHelper that interacts | |
17 // with ExtensionService. | |
18 class LauncherAppTabHelper : public ChromeLauncherController::AppTabHelper { | |
19 public: | |
20 explicit LauncherAppTabHelper(Profile* profile); | |
21 virtual ~LauncherAppTabHelper(); | |
22 | |
23 // AppTabHelper: | |
24 virtual std::string GetAppID(TabContents* tab) OVERRIDE; | |
25 virtual bool IsValidID(const std::string& id) OVERRIDE; | |
26 | |
27 private: | |
28 Profile* profile_; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(LauncherAppTabHelper); | |
31 }; | |
32 | |
33 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ | |
OLD | NEW |