root/chrome/browser/ui/ash/launcher/launcher_app_tab_helper.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright (c) 2012 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_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_
#define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_

#include <string>

#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"

class Profile;

// Default implementation of LauncherUpdater::AppTabHelper that interacts
// with ExtensionService.
class LauncherAppTabHelper : public ChromeLauncherController::AppTabHelper {
 public:
  explicit LauncherAppTabHelper(Profile* profile);
  virtual ~LauncherAppTabHelper();

  // AppTabHelper:
  virtual std::string GetAppID(content::WebContents* tab) OVERRIDE;
  virtual bool IsValidIDForCurrentUser(const std::string& id) OVERRIDE;
  virtual void SetCurrentUser(Profile* profile) OVERRIDE;

 private:
  Profile* profile_;

  DISALLOW_COPY_AND_ASSIGN(LauncherAppTabHelper);
};

#endif  // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_

/* [<][>][^][v][top][bottom][index][help] */