web_app_win.h revision c5cede9ae108bb15f6b7a8aea21c7e1fefa2834c
1// Copyright 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_WEB_APPLICATIONS_WEB_APP_WIN_H_
6#define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
7
8#include "base/files/file_path.h"
9#include "chrome/browser/shell_integration.h"
10
11namespace content {
12class WebContents;
13}
14
15namespace gfx {
16class ImageFamily;
17}
18
19namespace web_app {
20
21// Create a shortcut in the given web app data dir, returning the name of the
22// created shortcut.
23base::FilePath CreateShortcutInWebAppDir(
24    const base::FilePath& web_app_path,
25    const ShellIntegration::ShortcutInfo& shortcut_info);
26
27namespace internals {
28
29bool CheckAndSaveIcon(const base::FilePath& icon_file,
30                      const gfx::ImageFamily& image);
31
32base::FilePath GetIconFilePath(const base::FilePath& web_app_path,
33                               const base::string16& title);
34
35}  // namespace internals
36
37}  // namespace web_app
38
39#endif  // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
40