OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 10 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
11 | 11 |
12 class Profile; | 12 class Profile; |
13 | 13 |
14 // Default implementation of LauncherUpdater::AppTabHelper that interacts | 14 // Default implementation of LauncherUpdater::AppTabHelper that interacts |
15 // with ExtensionService. | 15 // with ExtensionService. |
16 class LauncherAppTabHelper : public ChromeLauncherController::AppTabHelper { | 16 class LauncherAppTabHelper : public ChromeLauncherController::AppTabHelper { |
17 public: | 17 public: |
18 explicit LauncherAppTabHelper(Profile* profile); | 18 explicit LauncherAppTabHelper(Profile* profile); |
19 virtual ~LauncherAppTabHelper(); | 19 virtual ~LauncherAppTabHelper(); |
20 | 20 |
21 // AppTabHelper: | 21 // AppTabHelper: |
22 virtual std::string GetAppID(content::WebContents* tab) OVERRIDE; | 22 virtual std::string GetAppID(content::WebContents* tab) override; |
23 virtual bool IsValidIDForCurrentUser(const std::string& id) OVERRIDE; | 23 virtual bool IsValidIDForCurrentUser(const std::string& id) override; |
24 virtual void SetCurrentUser(Profile* profile) OVERRIDE; | 24 virtual void SetCurrentUser(Profile* profile) override; |
25 | 25 |
26 private: | 26 private: |
27 Profile* profile_; | 27 Profile* profile_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(LauncherAppTabHelper); | 29 DISALLOW_COPY_AND_ASSIGN(LauncherAppTabHelper); |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ | 32 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ |
OLD | NEW |