| 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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
| 25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
| 26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 27 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
| 28 #include "chrome/grit/generated_resources.h" | 28 #include "chrome/grit/generated_resources.h" |
| 29 #include "components/favicon/core/favicon_service.h" | 29 #include "components/favicon/core/favicon_service.h" |
| 30 #include "components/favicon_base/favicon_types.h" | 30 #include "components/favicon_base/favicon_types.h" |
| 31 #include "components/history/core/browser/history_service.h" | 31 #include "components/history/core/browser/history_service.h" |
| 32 #include "components/history/core/browser/page_usage_data.h" | 32 #include "components/history/core/browser/page_usage_data.h" |
| 33 #include "components/history/core/browser/top_sites.h" | 33 #include "components/history/core/browser/top_sites.h" |
| 34 #include "components/sessions/core/session_types.h" |
| 34 #include "components/sessions/core/tab_restore_service.h" | 35 #include "components/sessions/core/tab_restore_service.h" |
| 35 #include "components/sessions/session_types.h" | |
| 36 #include "content/public/browser/browser_thread.h" | 36 #include "content/public/browser/browser_thread.h" |
| 37 #include "content/public/browser/notification_registrar.h" | 37 #include "content/public/browser/notification_registrar.h" |
| 38 #include "content/public/browser/notification_source.h" | 38 #include "content/public/browser/notification_source.h" |
| 39 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
| 40 #include "ui/gfx/codec/png_codec.h" | 40 #include "ui/gfx/codec/png_codec.h" |
| 41 #include "ui/gfx/favicon_size.h" | 41 #include "ui/gfx/favicon_size.h" |
| 42 #include "ui/gfx/icon_util.h" | 42 #include "ui/gfx/icon_util.h" |
| 43 #include "ui/gfx/image/image_family.h" | 43 #include "ui/gfx/image/image_family.h" |
| 44 #include "url/gurl.h" | 44 #include "url/gurl.h" |
| 45 | 45 |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { | 531 void JumpList::TopSitesLoaded(history::TopSites* top_sites) { |
| 532 } | 532 } |
| 533 | 533 |
| 534 void JumpList::TopSitesChanged(history::TopSites* top_sites, | 534 void JumpList::TopSitesChanged(history::TopSites* top_sites, |
| 535 ChangeReason change_reason) { | 535 ChangeReason change_reason) { |
| 536 top_sites->GetMostVisitedURLs( | 536 top_sites->GetMostVisitedURLs( |
| 537 base::Bind(&JumpList::OnMostVisitedURLsAvailable, | 537 base::Bind(&JumpList::OnMostVisitedURLsAvailable, |
| 538 weak_ptr_factory_.GetWeakPtr()), | 538 weak_ptr_factory_.GetWeakPtr()), |
| 539 false); | 539 false); |
| 540 } | 540 } |
| OLD | NEW |