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

Side by Side Diff: chrome/browser/sync/api/sync_change.h

Issue 7566036: Implement SyncableServices in TemplateURLService. Add related unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Recommitting patch. Repaired memory leaks and adjusted unittests to reflect changes. Created 9 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) 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_API_SYNC_CHANGE_H_ 5 #ifndef CHROME_BROWSER_SYNC_API_SYNC_CHANGE_H_
6 #define CHROME_BROWSER_SYNC_API_SYNC_CHANGE_H_ 6 #define CHROME_BROWSER_SYNC_API_SYNC_CHANGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 // Deletes: Requires valid tag when going to the syncer. Requires valid 38 // Deletes: Requires valid tag when going to the syncer. Requires valid
39 // specifics when coming from the syncer. 39 // specifics when coming from the syncer.
40 // Adds, Updates: Require valid tag and specifics when going to the syncer. 40 // Adds, Updates: Require valid tag and specifics when going to the syncer.
41 // Require only valid specifics when coming from the syncer. 41 // Require only valid specifics when coming from the syncer.
42 bool IsValid() const; 42 bool IsValid() const;
43 43
44 // Getters. 44 // Getters.
45 SyncChangeType change_type() const; 45 SyncChangeType change_type() const;
46 SyncData sync_data() const; 46 SyncData sync_data() const;
47 47
48 // Returns a string representation of |change_type|.
49 static std::string ChangeTypeToString(SyncChangeType change_type);
50
48 private: 51 private:
49 SyncChangeType change_type_; 52 SyncChangeType change_type_;
50 53
51 // An immutable container for the data of this SyncChange. Whenever 54 // An immutable container for the data of this SyncChange. Whenever
52 // SyncChanges are copied, they copy references to this data. 55 // SyncChanges are copied, they copy references to this data.
53 SyncData sync_data_; 56 SyncData sync_data_;
54 }; 57 };
55 58
56 #endif // CHROME_BROWSER_SYNC_API_SYNC_CHANGE_H_ 59 #endif // CHROME_BROWSER_SYNC_API_SYNC_CHANGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698