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> |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "app/l10n_util.h" | 15 #include "app/l10n_util.h" |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/scoped_comptr_win.h" | 20 #include "base/scoped_comptr_win.h" |
21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
22 #include "base/thread.h" | 22 #include "base/threading/thread.h" |
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/favicon_service.h" | 26 #include "chrome/browser/favicon_service.h" |
27 #include "chrome/browser/history/history.h" | 27 #include "chrome/browser/history/history.h" |
28 #include "chrome/browser/history/page_usage_data.h" | 28 #include "chrome/browser/history/page_usage_data.h" |
29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/browser/sessions/session_types.h" | 30 #include "chrome/browser/sessions/session_types.h" |
31 #include "chrome/browser/sessions/tab_restore_service.h" | 31 #include "chrome/browser/sessions/tab_restore_service.h" |
32 #include "chrome/browser/shell_integration.h" | 32 #include "chrome/browser/shell_integration.h" |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 // the file thread. | 773 // the file thread. |
774 BrowserThread::PostTask( | 774 BrowserThread::PostTask( |
775 BrowserThread::FILE, FROM_HERE, | 775 BrowserThread::FILE, FROM_HERE, |
776 new JumpListUpdateTask(app_id_.c_str(), icon_dir_, most_visited_pages_, | 776 new JumpListUpdateTask(app_id_.c_str(), icon_dir_, most_visited_pages_, |
777 recently_closed_pages_)); | 777 recently_closed_pages_)); |
778 | 778 |
779 // Delete all items in these lists since we don't need these lists any longer. | 779 // Delete all items in these lists since we don't need these lists any longer. |
780 most_visited_pages_.clear(); | 780 most_visited_pages_.clear(); |
781 recently_closed_pages_.clear(); | 781 recently_closed_pages_.clear(); |
782 } | 782 } |
OLD | NEW |