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