OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/callback_old.h" | 12 #include "base/callback_old.h" |
12 #include "base/file_path.h" | 13 #include "base/file_path.h" |
13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
14 #include "chrome/browser/shell_integration.h" | 15 #include "chrome/browser/shell_integration.h" |
15 #include "chrome/common/web_apps.h" | 16 #include "chrome/common/web_apps.h" |
16 | 17 |
17 class Profile; | |
18 | |
19 namespace web_app { | 18 namespace web_app { |
20 | 19 |
21 // Compute a deterministic name based on data in the shortcut_info. | 20 // Compute a deterministic name based on data in the shortcut_info. |
22 std::string GenerateApplicationNameFromInfo( | 21 std::string GenerateApplicationNameFromInfo( |
23 const ShellIntegration::ShortcutInfo& shortcut_info); | 22 const ShellIntegration::ShortcutInfo& shortcut_info); |
24 | 23 |
25 // Compute a deterministic name based on the URL. We use this pseudo name | 24 // Compute a deterministic name based on the URL. We use this pseudo name |
26 // as a key to store window location per application URLs in Browser and | 25 // as a key to store window location per application URLs in Browser and |
27 // as app id for BrowserWindow, shortcut and jump list. | 26 // as app id for BrowserWindow, shortcut and jump list. |
28 std::string GenerateApplicationNameFromURL(const GURL& url); | 27 std::string GenerateApplicationNameFromURL(const GURL& url); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 bool CheckAndSaveIcon(const FilePath& icon_file, const SkBitmap& image); | 75 bool CheckAndSaveIcon(const FilePath& icon_file, const SkBitmap& image); |
77 #endif | 76 #endif |
78 | 77 |
79 FilePath GetWebAppDataDirectory(const FilePath& root_dir, | 78 FilePath GetWebAppDataDirectory(const FilePath& root_dir, |
80 const ShellIntegration::ShortcutInfo& info); | 79 const ShellIntegration::ShortcutInfo& info); |
81 } // namespace internals | 80 } // namespace internals |
82 | 81 |
83 } // namespace web_app | 82 } // namespace web_app |
84 | 83 |
85 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 84 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
OLD | NEW |