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

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

Issue 10805002: [Sync] Enable adding notifier observers from ProfileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head, address comments Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TEST_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, 54 const base::Callback<void(syncer::ModelTypeSet)>& ready_task,
55 const base::Closure& retry_callback) OVERRIDE; 55 const base::Closure& retry_callback) OVERRIDE;
56 56
57 virtual void HandleSyncManagerInitializationOnFrontendLoop( 57 virtual void HandleSyncManagerInitializationOnFrontendLoop(
58 const syncer::WeakHandle<syncer::JsBackend>& js_backend, bool success, 58 const syncer::WeakHandle<syncer::JsBackend>& js_backend, bool success,
59 syncer::ModelTypeSet restored_types) OVERRIDE; 59 syncer::ModelTypeSet restored_types) OVERRIDE;
60 60
61 static void SetHistoryServiceExpectations(ProfileMock* profile); 61 static void SetHistoryServiceExpectations(ProfileMock* profile);
62 62
63 void SetInitialSyncEndedForAllTypes(); 63 void SetInitialSyncEndedForAllTypes();
64 void dont_set_initial_sync_ended_on_init(); 64
65 void EmitOnNotificationsEnabled();
66 void EmitOnNotificationsDisabled(
67 syncer::NotificationsDisabledReason reason);
68 void EmitOnIncomingNotification(
69 const syncer::ObjectIdPayloadMap& id_payloads,
70 const syncer::IncomingNotificationSource source);
65 71
66 protected: 72 protected:
67 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE; 73 virtual void InitCore(const DoInitializeOptions& options) OVERRIDE;
68 74
69 private: 75 private:
70 syncer::TestIdFactory& id_factory_; 76 syncer::TestIdFactory& id_factory_;
71 base::Closure& callback_; 77 base::Closure& callback_;
72 78
73 bool set_initial_sync_ended_on_init_; 79 bool set_initial_sync_ended_on_init_;
74 bool synchronous_init_; 80 bool synchronous_init_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 bool synchronous_sync_configuration_; 140 bool synchronous_sync_configuration_;
135 141
136 base::Closure callback_; 142 base::Closure callback_;
137 bool set_initial_sync_ended_on_init_; 143 bool set_initial_sync_ended_on_init_;
138 144
139 bool fail_initial_download_; 145 bool fail_initial_download_;
140 syncer::StorageOption storage_option_; 146 syncer::StorageOption storage_option_;
141 }; 147 };
142 148
143 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 149 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698