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

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

Issue 8470005: Add OVERRIDE to chrome/browser/sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes Created 9 years, 1 month 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_BOOKMARK_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // must already exist and be associated for this call to succeed. Returns 98 // must already exist and be associated for this call to succeed. Returns
99 // the ID of the just-created node, or if creation fails, kInvalidID. 99 // the ID of the just-created node, or if creation fails, kInvalidID.
100 static int64 CreateSyncNode(const BookmarkNode* parent, 100 static int64 CreateSyncNode(const BookmarkNode* parent,
101 BookmarkModel* model, 101 BookmarkModel* model,
102 int index, 102 int index,
103 sync_api::WriteTransaction* trans, 103 sync_api::WriteTransaction* trans,
104 BookmarkModelAssociator* associator, 104 BookmarkModelAssociator* associator,
105 UnrecoverableErrorHandler* error_handler); 105 UnrecoverableErrorHandler* error_handler);
106 106
107 protected: 107 protected:
108 virtual void StartImpl(Profile* profile); 108 virtual void StartImpl(Profile* profile) OVERRIDE;
109 virtual void StopImpl(); 109 virtual void StopImpl() OVERRIDE;
110 110
111 private: 111 private:
112 enum MoveOrCreate { 112 enum MoveOrCreate {
113 MOVE, 113 MOVE,
114 CREATE, 114 CREATE,
115 }; 115 };
116 116
117 // Create a bookmark node corresponding to |src| if one is not already 117 // Create a bookmark node corresponding to |src| if one is not already
118 // associated with |src|. Returns the node that was created or updated. 118 // associated with |src|. Returns the node that was created or updated.
119 const BookmarkNode* CreateOrUpdateBookmarkNode( 119 const BookmarkNode* CreateOrUpdateBookmarkNode(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // The two models should be associated according to this ModelAssociator. 169 // The two models should be associated according to this ModelAssociator.
170 BookmarkModelAssociator* model_associator_; 170 BookmarkModelAssociator* model_associator_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor); 172 DISALLOW_COPY_AND_ASSIGN(BookmarkChangeProcessor);
173 }; 173 };
174 174
175 } // namespace browser_sync 175 } // namespace browser_sync
176 176
177 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_ 177 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/app_data_type_controller.h ('k') | chrome/browser/sync/glue/bookmark_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698