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

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

Issue 6902101: Refactor sync passphrase setup flow and fix passphrase tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: de Morgan's law simplification. Created 9 years, 7 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_JS_SYNC_MANAGER_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_ 6 #define CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 16 matching lines...) Expand all
27 virtual void OnChangesApplied( 27 virtual void OnChangesApplied(
28 syncable::ModelType model_type, 28 syncable::ModelType model_type,
29 const sync_api::BaseTransaction* trans, 29 const sync_api::BaseTransaction* trans,
30 const sync_api::SyncManager::ChangeRecord* changes, 30 const sync_api::SyncManager::ChangeRecord* changes,
31 int change_count); 31 int change_count);
32 virtual void OnChangesComplete(syncable::ModelType model_type); 32 virtual void OnChangesComplete(syncable::ModelType model_type);
33 virtual void OnSyncCycleCompleted( 33 virtual void OnSyncCycleCompleted(
34 const sessions::SyncSessionSnapshot* snapshot); 34 const sessions::SyncSessionSnapshot* snapshot);
35 virtual void OnAuthError(const GoogleServiceAuthError& auth_error); 35 virtual void OnAuthError(const GoogleServiceAuthError& auth_error);
36 virtual void OnUpdatedToken(const std::string& token); 36 virtual void OnUpdatedToken(const std::string& token);
37 virtual void OnPassphraseRequired(bool for_decryption); 37 virtual void OnPassphraseRequired(sync_api::PassphraseRequiredReason reason);
38 virtual void OnPassphraseFailed();
39 virtual void OnPassphraseAccepted(const std::string& bootstrap_token); 38 virtual void OnPassphraseAccepted(const std::string& bootstrap_token);
40 virtual void OnEncryptionComplete( 39 virtual void OnEncryptionComplete(
41 const syncable::ModelTypeSet& encrypted_types); 40 const syncable::ModelTypeSet& encrypted_types);
42 virtual void OnInitializationComplete(); 41 virtual void OnInitializationComplete();
43 virtual void OnStopSyncingPermanently(); 42 virtual void OnStopSyncingPermanently();
44 virtual void OnClearServerDataSucceeded(); 43 virtual void OnClearServerDataSucceeded();
45 virtual void OnClearServerDataFailed(); 44 virtual void OnClearServerDataFailed();
46 virtual void OnMigrationNeededForTypes(const syncable::ModelTypeSet& types); 45 virtual void OnMigrationNeededForTypes(const syncable::ModelTypeSet& types);
47 46
48 private: 47 private:
49 JsEventRouter* parent_router_; 48 JsEventRouter* parent_router_;
50 49
51 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); 50 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver);
52 }; 51 };
53 52
54 } // namespace browser_sync 53 } // namespace browser_sync
55 54
56 #endif // CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_ 55 #endif // CHROME_BROWSER_SYNC_JS_SYNC_MANAGER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698