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/jumplist_win.h" | 5 #include "chrome/browser/jumplist_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shobjidl.h> | 8 #include <shobjidl.h> |
9 #include <propkey.h> | 9 #include <propkey.h> |
10 #include <propvarutil.h> | 10 #include <propvarutil.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/favicon_service.h" | 25 #include "chrome/browser/favicon_service.h" |
26 #include "chrome/browser/history/history.h" | 26 #include "chrome/browser/history/history.h" |
27 #include "chrome/browser/history/page_usage_data.h" | 27 #include "chrome/browser/history/page_usage_data.h" |
28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
29 #include "chrome/browser/sessions/session_types.h" | 29 #include "chrome/browser/sessions/session_types.h" |
30 #include "chrome/browser/sessions/tab_restore_service.h" | 30 #include "chrome/browser/sessions/tab_restore_service.h" |
31 #include "chrome/browser/shell_integration.h" | 31 #include "chrome/browser/shell_integration.h" |
32 #include "chrome/common/chrome_constants.h" | 32 #include "chrome/common/chrome_constants.h" |
33 #include "chrome/common/chrome_switches.h" | 33 #include "chrome/common/chrome_switches.h" |
34 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
35 #include "gfx/codec/png_codec.h" | |
36 #include "gfx/icon_util.h" | |
37 #include "googleurl/src/gurl.h" | 35 #include "googleurl/src/gurl.h" |
38 #include "grit/chromium_strings.h" | 36 #include "grit/chromium_strings.h" |
39 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
40 #include "third_party/skia/include/core/SkBitmap.h" | 38 #include "third_party/skia/include/core/SkBitmap.h" |
41 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
| 40 #include "ui/gfx/codec/png_codec.h" |
| 41 #include "ui/gfx/icon_util.h" |
42 | 42 |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
46 // COM interfaces used in this file. | 46 // COM interfaces used in this file. |
47 // These interface declarations are copied from Windows SDK 7.0. | 47 // These interface declarations are copied from Windows SDK 7.0. |
48 // TODO(hbono): Bug 16903: to be deleted them when we use Windows SDK 7.0. | 48 // TODO(hbono): Bug 16903: to be deleted them when we use Windows SDK 7.0. |
49 #ifndef __IObjectArray_INTERFACE_DEFINED__ | 49 #ifndef __IObjectArray_INTERFACE_DEFINED__ |
50 #define __IObjectArray_INTERFACE_DEFINED__ | 50 #define __IObjectArray_INTERFACE_DEFINED__ |
51 | 51 |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 // the file thread. | 775 // the file thread. |
776 BrowserThread::PostTask( | 776 BrowserThread::PostTask( |
777 BrowserThread::FILE, FROM_HERE, | 777 BrowserThread::FILE, FROM_HERE, |
778 new JumpListUpdateTask(app_id_.c_str(), icon_dir_, most_visited_pages_, | 778 new JumpListUpdateTask(app_id_.c_str(), icon_dir_, most_visited_pages_, |
779 recently_closed_pages_)); | 779 recently_closed_pages_)); |
780 | 780 |
781 // Delete all items in these lists since we don't need these lists any longer. | 781 // Delete all items in these lists since we don't need these lists any longer. |
782 most_visited_pages_.clear(); | 782 most_visited_pages_.clear(); |
783 recently_closed_pages_.clear(); | 783 recently_closed_pages_.clear(); |
784 } | 784 } |
OLD | NEW |