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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 7024058: [Sync] Clean up sync logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // TODO(akalin): Write unit tests for the JsBackend, finding a way 263 // TODO(akalin): Write unit tests for the JsBackend, finding a way
264 // to make this class testable in general. 264 // to make this class testable in general.
265 265
266 protected: 266 protected:
267 // The real guts of SyncBackendHost, to keep the public client API clean. 267 // The real guts of SyncBackendHost, to keep the public client API clean.
268 class Core : public base::RefCountedThreadSafe<SyncBackendHost::Core>, 268 class Core : public base::RefCountedThreadSafe<SyncBackendHost::Core>,
269 public sync_api::SyncManager::Observer, 269 public sync_api::SyncManager::Observer,
270 public JsBackend, 270 public JsBackend,
271 public JsEventRouter { 271 public JsEventRouter {
272 public: 272 public:
273 explicit Core(SyncBackendHost* backend); 273 Core(const std::string& name, SyncBackendHost* backend);
274 274
275 // SyncManager::Observer implementation. The Core just acts like an air 275 // SyncManager::Observer implementation. The Core just acts like an air
276 // traffic controller here, forwarding incoming messages to appropriate 276 // traffic controller here, forwarding incoming messages to appropriate
277 // landing threads. 277 // landing threads.
278 virtual void OnChangesApplied( 278 virtual void OnChangesApplied(
279 syncable::ModelType model_type, 279 syncable::ModelType model_type,
280 const sync_api::BaseTransaction* trans, 280 const sync_api::BaseTransaction* trans,
281 const sync_api::SyncManager::ChangeRecord* changes, 281 const sync_api::SyncManager::ChangeRecord* changes,
282 int change_count); 282 int change_count);
283 virtual void OnChangesComplete(syncable::ModelType model_type); 283 virtual void OnChangesComplete(syncable::ModelType model_type);
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 656
657 // Whether we've processed the initialization complete callback. 657 // Whether we've processed the initialization complete callback.
658 bool syncapi_initialized_; 658 bool syncapi_initialized_;
659 659
660 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 660 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
661 }; 661 };
662 662
663 } // namespace browser_sync 663 } // namespace browser_sync
664 664
665 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 665 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncer_thread_whitebox_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698