| 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/macros.h" |  | 
|    11 #include "base/metrics/histogram_macros.h" |    10 #include "base/metrics/histogram_macros.h" | 
|    12 #include "base/single_thread_task_runner.h" |    11 #include "base/single_thread_task_runner.h" | 
|    13 #include "base/threading/thread_task_runner_handle.h" |    12 #include "base/threading/thread_task_runner_handle.h" | 
|    14 #include "components/favicon/core/favicon_service.h" |    13 #include "components/favicon/core/favicon_service.h" | 
|    15 #include "components/history/core/browser/history_service.h" |    14 #include "components/history/core/browser/history_service.h" | 
|    16 #include "components/history/core/browser/history_types.h" |  | 
|    17 #include "components/sync/api/time.h" |    15 #include "components/sync/api/time.h" | 
|    18 #include "components/sync/protocol/favicon_image_specifics.pb.h" |    16 #include "components/sync/protocol/favicon_image_specifics.pb.h" | 
|    19 #include "components/sync/protocol/favicon_tracking_specifics.pb.h" |    17 #include "components/sync/protocol/favicon_tracking_specifics.pb.h" | 
|    20 #include "components/sync/protocol/sync.pb.h" |    18 #include "components/sync/protocol/sync.pb.h" | 
|    21 #include "ui/gfx/favicon_size.h" |    19 #include "ui/gfx/favicon_size.h" | 
|    22  |    20  | 
|    23 namespace sync_sessions { |    21 namespace sync_sessions { | 
|    24  |    22  | 
|    25 // Synced favicon storage and tracking. |    23 // Synced favicon storage and tracking. | 
|    26 // 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 | 
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1041     favicon_images_sync_processor_->ProcessSyncChanges(FROM_HERE, |  1039     favicon_images_sync_processor_->ProcessSyncChanges(FROM_HERE, | 
|  1042                                                        image_deletions); |  1040                                                        image_deletions); | 
|  1043   } |  1041   } | 
|  1044   if (favicon_tracking_sync_processor_.get()) { |  1042   if (favicon_tracking_sync_processor_.get()) { | 
|  1045     favicon_tracking_sync_processor_->ProcessSyncChanges(FROM_HERE, |  1043     favicon_tracking_sync_processor_->ProcessSyncChanges(FROM_HERE, | 
|  1046                                                          tracking_deletions); |  1044                                                          tracking_deletions); | 
|  1047   } |  1045   } | 
|  1048 } |  1046 } | 
|  1049  |  1047  | 
|  1050 }  // namespace sync_sessions |  1048 }  // namespace sync_sessions | 
| OLD | NEW |