OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/prefs/pref_change_registrar.h" | |
14 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
16 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
17 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
18 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
19 #include "chrome/browser/favicon/favicon_service_factory.h" | 18 #include "chrome/browser/favicon/favicon_service_factory.h" |
20 #include "chrome/browser/history/top_sites_factory.h" | 19 #include "chrome/browser/history/top_sites_factory.h" |
21 #include "chrome/browser/metrics/jumplist_metrics_win.h" | 20 #include "chrome/browser/metrics/jumplist_metrics_win.h" |
22 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 22 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
24 #include "chrome/browser/shell_integration.h" | 23 #include "chrome/browser/shell_integration.h" |
25 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
26 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
27 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
28 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
29 #include "chrome/grit/generated_resources.h" | 28 #include "chrome/grit/generated_resources.h" |
30 #include "components/favicon/core/favicon_service.h" | 29 #include "components/favicon/core/favicon_service.h" |
31 #include "components/favicon_base/favicon_types.h" | 30 #include "components/favicon_base/favicon_types.h" |
32 #include "components/history/core/browser/history_service.h" | 31 #include "components/history/core/browser/history_service.h" |
33 #include "components/history/core/browser/page_usage_data.h" | 32 #include "components/history/core/browser/page_usage_data.h" |
34 #include "components/history/core/browser/top_sites.h" | 33 #include "components/history/core/browser/top_sites.h" |
| 34 #include "components/prefs/pref_change_registrar.h" |
35 #include "components/sessions/core/session_types.h" | 35 #include "components/sessions/core/session_types.h" |
36 #include "components/sessions/core/tab_restore_service.h" | 36 #include "components/sessions/core/tab_restore_service.h" |
37 #include "content/public/browser/browser_thread.h" | 37 #include "content/public/browser/browser_thread.h" |
38 #include "content/public/browser/notification_registrar.h" | 38 #include "content/public/browser/notification_registrar.h" |
39 #include "content/public/browser/notification_source.h" | 39 #include "content/public/browser/notification_source.h" |
40 #include "ui/base/l10n/l10n_util.h" | 40 #include "ui/base/l10n/l10n_util.h" |
41 #include "ui/gfx/codec/png_codec.h" | 41 #include "ui/gfx/codec/png_codec.h" |
42 #include "ui/gfx/favicon_size.h" | 42 #include "ui/gfx/favicon_size.h" |
43 #include "ui/gfx/icon_util.h" | 43 #include "ui/gfx/icon_util.h" |
44 #include "ui/gfx/image/image_family.h" | 44 #include "ui/gfx/image/image_family.h" |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { | 533 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { |
534 } | 534 } |
535 | 535 |
536 void JumpList::TopSitesChanged(history::TopSites* top_sites, | 536 void JumpList::TopSitesChanged(history::TopSites* top_sites, |
537 ChangeReason change_reason) { | 537 ChangeReason change_reason) { |
538 top_sites->GetMostVisitedURLs( | 538 top_sites->GetMostVisitedURLs( |
539 base::Bind(&JumpList::OnMostVisitedURLsAvailable, | 539 base::Bind(&JumpList::OnMostVisitedURLsAvailable, |
540 weak_ptr_factory_.GetWeakPtr()), | 540 weak_ptr_factory_.GetWeakPtr()), |
541 false); | 541 false); |
542 } | 542 } |
OLD | NEW |