| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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.h" | 5 #include "chrome/browser/jumplist.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> |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "app/gfx/codec/png_codec.h" | 15 #include "app/gfx/codec/png_codec.h" |
| 16 #include "app/gfx/icon_util.h" | |
| 17 #include "app/l10n_util.h" | 16 #include "app/l10n_util.h" |
| 18 #include "base/callback.h" | 17 #include "base/callback.h" |
| 19 #include "base/command_line.h" | 18 #include "base/command_line.h" |
| 20 #include "base/file_util.h" | 19 #include "base/file_util.h" |
| 21 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 22 #include "base/scoped_comptr_win.h" | 21 #include "base/scoped_comptr_win.h" |
| 23 #include "base/string_util.h" | 22 #include "base/string_util.h" |
| 24 #include "base/thread.h" | 23 #include "base/thread.h" |
| 25 #include "base/win_util.h" | 24 #include "base/win_util.h" |
| 26 #include "chrome/browser/chrome_thread.h" | 25 #include "chrome/browser/chrome_thread.h" |
| 27 #include "chrome/browser/favicon_service.h" | 26 #include "chrome/browser/favicon_service.h" |
| 28 #include "chrome/browser/history/history.h" | 27 #include "chrome/browser/history/history.h" |
| 29 #include "chrome/browser/history/page_usage_data.h" | 28 #include "chrome/browser/history/page_usage_data.h" |
| 30 #include "chrome/browser/profile.h" | 29 #include "chrome/browser/profile.h" |
| 31 #include "chrome/browser/sessions/session_types.h" | 30 #include "chrome/browser/sessions/session_types.h" |
| 32 #include "chrome/browser/sessions/tab_restore_service.h" | 31 #include "chrome/browser/sessions/tab_restore_service.h" |
| 33 #include "chrome/browser/shell_integration.h" | 32 #include "chrome/browser/shell_integration.h" |
| 34 #include "chrome/common/chrome_constants.h" | 33 #include "chrome/common/chrome_constants.h" |
| 35 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
| 36 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
| 36 #include "gfx/icon_util.h" |
| 37 #include "googleurl/src/gurl.h" | 37 #include "googleurl/src/gurl.h" |
| 38 #include "third_party/skia/include/core/SkBitmap.h" | 38 #include "third_party/skia/include/core/SkBitmap.h" |
| 39 | 39 |
| 40 #include "grit/chromium_strings.h" | 40 #include "grit/chromium_strings.h" |
| 41 #include "grit/generated_resources.h" | 41 #include "grit/generated_resources.h" |
| 42 | 42 |
| 43 namespace { | 43 namespace { |
| 44 | 44 |
| 45 // COM interfaces used in this file. | 45 // COM interfaces used in this file. |
| 46 // These interface declarations are copied from Windows SDK 7.0. | 46 // These interface declarations are copied from Windows SDK 7.0. |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 // the file thread. | 771 // the file thread. |
| 772 ChromeThread::PostTask( | 772 ChromeThread::PostTask( |
| 773 ChromeThread::FILE, FROM_HERE, | 773 ChromeThread::FILE, FROM_HERE, |
| 774 new JumpListUpdateTask(app_id_.c_str(), icon_dir_, most_visited_pages_, | 774 new JumpListUpdateTask(app_id_.c_str(), icon_dir_, most_visited_pages_, |
| 775 recently_closed_pages_)); | 775 recently_closed_pages_)); |
| 776 | 776 |
| 777 // Delete all items in these lists since we don't need these lists any longer. | 777 // Delete all items in these lists since we don't need these lists any longer. |
| 778 most_visited_pages_.clear(); | 778 most_visited_pages_.clear(); |
| 779 recently_closed_pages_.clear(); | 779 recently_closed_pages_.clear(); |
| 780 } | 780 } |
| OLD | NEW |