Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_core.cc

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "chrome/browser/sync/glue/sync_backend_host_core.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_core.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "chrome/browser/sync/glue/invalidation_adapter.h" 11 #include "chrome/browser/sync/glue/invalidation_adapter.h"
12 #include "chrome/browser/sync/glue/local_device_info_provider_impl.h" 12 #include "chrome/browser/sync/glue/local_device_info_provider_impl.h"
13 #include "chrome/browser/sync/glue/sync_backend_registrar.h" 13 #include "chrome/browser/sync/glue/sync_backend_registrar.h"
14 #include "chrome/common/chrome_version_info.h" 14 #include "chrome/common/chrome_version_info.h"
15 #include "components/invalidation/invalidation_util.h" 15 #include "components/invalidation/public/invalidation_util.h"
16 #include "components/invalidation/object_id_invalidation_map.h" 16 #include "components/invalidation/public/object_id_invalidation_map.h"
17 #include "sync/internal_api/public/events/protocol_event.h" 17 #include "sync/internal_api/public/events/protocol_event.h"
18 #include "sync/internal_api/public/http_post_provider_factory.h" 18 #include "sync/internal_api/public/http_post_provider_factory.h"
19 #include "sync/internal_api/public/internal_components_factory.h" 19 #include "sync/internal_api/public/internal_components_factory.h"
20 #include "sync/internal_api/public/sessions/commit_counters.h" 20 #include "sync/internal_api/public/sessions/commit_counters.h"
21 #include "sync/internal_api/public/sessions/status_counters.h" 21 #include "sync/internal_api/public/sessions/status_counters.h"
22 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" 22 #include "sync/internal_api/public/sessions/sync_session_snapshot.h"
23 #include "sync/internal_api/public/sessions/update_counters.h" 23 #include "sync/internal_api/public/sessions/update_counters.h"
24 #include "sync/internal_api/public/sync_context_proxy.h" 24 #include "sync/internal_api/public/sync_context_proxy.h"
25 #include "sync/internal_api/public/sync_manager.h" 25 #include "sync/internal_api/public/sync_manager.h"
26 #include "sync/internal_api/public/sync_manager_factory.h" 26 #include "sync/internal_api/public/sync_manager_factory.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), 735 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds),
736 this, &SyncBackendHostCore::SaveChanges); 736 this, &SyncBackendHostCore::SaveChanges);
737 } 737 }
738 738
739 void SyncBackendHostCore::SaveChanges() { 739 void SyncBackendHostCore::SaveChanges() {
740 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 740 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
741 sync_manager_->SaveChanges(); 741 sync_manager_->SaveChanges();
742 } 742 }
743 743
744 } // namespace browser_sync 744 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/invalidation_helper.h ('k') | chrome/browser/sync/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698