OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/web_applications/web_app.h" | 5 #include "chrome/browser/web_applications/web_app.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 #endif // defined(OS_WIN) | 10 #endif // defined(OS_WIN) |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
24 #include "base/win/windows_version.h" | 24 #include "base/win/windows_version.h" |
25 #include "chrome/browser/browser_thread.h" | 25 #include "chrome/browser/browser_thread.h" |
26 #include "chrome/browser/download/download_util.h" | 26 #include "chrome/browser/download/download_util.h" |
27 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/browser/tab_contents/tab_contents.h" | 28 #include "chrome/browser/tab_contents/tab_contents.h" |
29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
31 #include "chrome/common/chrome_plugin_util.h" | 31 #include "chrome/common/chrome_plugin_util.h" |
32 #include "chrome/common/notification_registrar.h" | 32 #include "chrome/common/notification_registrar.h" |
33 #include "chrome/common/notification_service.h" | |
34 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
35 #include "chrome/common/web_apps.h" | 34 #include "chrome/common/web_apps.h" |
36 | 35 |
37 #if defined(OS_LINUX) | 36 #if defined(OS_LINUX) |
38 #include "base/environment.h" | 37 #include "base/environment.h" |
39 #endif // defined(OS_LINUX) | 38 #endif // defined(OS_LINUX) |
40 | 39 |
41 #if defined(OS_WIN) | 40 #if defined(OS_WIN) |
42 #include "base/win_util.h" | 41 #include "base/win_util.h" |
| 42 #include "chrome/common/notification_details.h" |
| 43 #include "chrome/common/notification_source.h" |
43 #include "gfx/icon_util.h" | 44 #include "gfx/icon_util.h" |
44 #endif // defined(OS_WIN) | 45 #endif // defined(OS_WIN) |
45 | 46 |
46 namespace { | 47 namespace { |
47 | 48 |
48 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
49 const FilePath::CharType kIconChecksumFileExt[] = FILE_PATH_LITERAL(".ico.md5"); | 50 const FilePath::CharType kIconChecksumFileExt[] = FILE_PATH_LITERAL(".ico.md5"); |
50 | 51 |
51 // Returns true if |ch| is in visible ASCII range and not one of | 52 // Returns true if |ch| is in visible ASCII range and not one of |
52 // "/ \ : * ? " < > | ; ,". | 53 // "/ \ : * ? " < > | ; ,". |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 | 757 |
757 void UpdateShortcutForTabContents(TabContents* tab_contents) { | 758 void UpdateShortcutForTabContents(TabContents* tab_contents) { |
758 #if defined(OS_WIN) | 759 #if defined(OS_WIN) |
759 // UpdateShortcutWorker will delete itself when it's done. | 760 // UpdateShortcutWorker will delete itself when it's done. |
760 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); | 761 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); |
761 worker->Run(); | 762 worker->Run(); |
762 #endif // defined(OS_WIN) | 763 #endif // defined(OS_WIN) |
763 } | 764 } |
764 | 765 |
765 }; // namespace web_app | 766 }; // namespace web_app |
OLD | NEW |