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

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

Issue 7918001: [Sync] Move ChangeRecord into its own file (change_record.{h,cc}) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 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_PASSWORD_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/glue/change_processor.h" 9 #include "chrome/browser/sync/glue/change_processor.h"
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // NotificationObserver implementation. 39 // NotificationObserver implementation.
40 // Passwords -> sync_api model change application. 40 // Passwords -> sync_api model change application.
41 virtual void Observe(int type, 41 virtual void Observe(int type,
42 const NotificationSource& source, 42 const NotificationSource& source,
43 const NotificationDetails& details) OVERRIDE; 43 const NotificationDetails& details) OVERRIDE;
44 44
45 // sync_api model -> WebDataService change application. 45 // sync_api model -> WebDataService change application.
46 virtual void ApplyChangesFromSyncModel( 46 virtual void ApplyChangesFromSyncModel(
47 const sync_api::BaseTransaction* trans, 47 const sync_api::BaseTransaction* trans,
48 const sync_api::SyncManager::ChangeRecord* changes, 48 const sync_api::ImmutableChangeRecordList& changes) OVERRIDE;
49 int change_count) OVERRIDE;
50 49
51 // Commit changes buffered during ApplyChanges. We must commit them to the 50 // Commit changes buffered during ApplyChanges. We must commit them to the
52 // password store only after the sync_api transaction is released, else there 51 // password store only after the sync_api transaction is released, else there
53 // is risk of deadlock due to the password store posting tasks to the UI 52 // is risk of deadlock due to the password store posting tasks to the UI
54 // thread (http://crbug.com/70658). 53 // thread (http://crbug.com/70658).
55 virtual void CommitChangesFromSyncModel() OVERRIDE; 54 virtual void CommitChangesFromSyncModel() OVERRIDE;
56 55
57 protected: 56 protected:
58 virtual void StartImpl(Profile* profile) OVERRIDE; 57 virtual void StartImpl(Profile* profile) OVERRIDE;
59 virtual void StopImpl() OVERRIDE; 58 virtual void StopImpl() OVERRIDE;
(...skipping 21 matching lines...) Expand all
81 bool observing_; 80 bool observing_;
82 81
83 MessageLoop* expected_loop_; 82 MessageLoop* expected_loop_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(PasswordChangeProcessor); 84 DISALLOW_COPY_AND_ASSIGN(PasswordChangeProcessor);
86 }; 85 };
87 86
88 } // namespace browser_sync 87 } // namespace browser_sync
89 88
90 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_ 89 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/generic_change_processor.cc ('k') | chrome/browser/sync/glue/password_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698