| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/sync_sessions/favicon_cache.h" | 5 #include "components/sync_sessions/favicon_cache.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "components/favicon/core/favicon_service.h" | 13 #include "components/favicon/core/favicon_service.h" |
| 14 #include "components/history/core/browser/history_service.h" | 14 #include "components/history/core/browser/history_service.h" |
| 15 #include "components/sync/api/time.h" | 15 #include "components/sync/model/time.h" |
| 16 #include "components/sync/protocol/favicon_image_specifics.pb.h" | 16 #include "components/sync/protocol/favicon_image_specifics.pb.h" |
| 17 #include "components/sync/protocol/favicon_tracking_specifics.pb.h" | 17 #include "components/sync/protocol/favicon_tracking_specifics.pb.h" |
| 18 #include "components/sync/protocol/sync.pb.h" | 18 #include "components/sync/protocol/sync.pb.h" |
| 19 #include "ui/gfx/favicon_size.h" | 19 #include "ui/gfx/favicon_size.h" |
| 20 | 20 |
| 21 namespace sync_sessions { | 21 namespace sync_sessions { |
| 22 | 22 |
| 23 // Synced favicon storage and tracking. | 23 // Synced favicon storage and tracking. |
| 24 // Note: we don't use the favicon service for storing these because these | 24 // Note: we don't use the favicon service for storing these because these |
| 25 // favicons are not necessarily associated with any local navigation, and | 25 // favicons are not necessarily associated with any local navigation, and |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 favicon_images_sync_processor_->ProcessSyncChanges(FROM_HERE, | 1039 favicon_images_sync_processor_->ProcessSyncChanges(FROM_HERE, |
| 1040 image_deletions); | 1040 image_deletions); |
| 1041 } | 1041 } |
| 1042 if (favicon_tracking_sync_processor_.get()) { | 1042 if (favicon_tracking_sync_processor_.get()) { |
| 1043 favicon_tracking_sync_processor_->ProcessSyncChanges(FROM_HERE, | 1043 favicon_tracking_sync_processor_->ProcessSyncChanges(FROM_HERE, |
| 1044 tracking_deletions); | 1044 tracking_deletions); |
| 1045 } | 1045 } |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 } // namespace sync_sessions | 1048 } // namespace sync_sessions |
| OLD | NEW |