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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 8065016: [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase++++ Created 9 years, 2 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_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 const tracked_objects::Location& from_here, 358 const tracked_objects::Location& from_here,
359 const std::string& message) OVERRIDE; 359 const std::string& message) OVERRIDE;
360 360
361 // The functions below (until ActivateDataType()) should only be 361 // The functions below (until ActivateDataType()) should only be
362 // called if sync_initialized() is true. 362 // called if sync_initialized() is true.
363 363
364 // TODO(akalin): This is called mostly by ModelAssociators and 364 // TODO(akalin): This is called mostly by ModelAssociators and
365 // tests. Figure out how to pass the handle to the ModelAssociators 365 // tests. Figure out how to pass the handle to the ModelAssociators
366 // directly, figure out how to expose this to tests, and remove this 366 // directly, figure out how to expose this to tests, and remove this
367 // function. 367 // function.
368 sync_api::UserShare* GetUserShare() const; 368 virtual sync_api::UserShare* GetUserShare() const;
369 369
370 // TODO(akalin): These two functions are used only by 370 // TODO(akalin): These two functions are used only by
371 // ProfileSyncServiceHarness. Figure out a different way to expose 371 // ProfileSyncServiceHarness. Figure out a different way to expose
372 // this info to that class, and remove these functions. 372 // this info to that class, and remove these functions.
373 373
374 virtual const browser_sync::sessions::SyncSessionSnapshot* 374 virtual const browser_sync::sessions::SyncSessionSnapshot*
375 GetLastSessionSnapshot() const; 375 GetLastSessionSnapshot() const;
376 376
377 // Returns whether or not the underlying sync engine has made any 377 // Returns whether or not the underlying sync engine has made any
378 // local changes to items that have not yet been synced with the 378 // local changes to items that have not yet been synced with the
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 FailedDatatypesHandler failed_datatypes_handler_; 692 FailedDatatypesHandler failed_datatypes_handler_;
693 693
694 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 694 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
695 }; 695 };
696 696
697 bool ShouldShowActionOnUI( 697 bool ShouldShowActionOnUI(
698 const browser_sync::SyncProtocolError& error); 698 const browser_sync::SyncProtocolError& error);
699 699
700 700
701 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 701 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_factory_mock.h ('k') | chrome/browser/sync/profile_sync_service_autofill_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698