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

Side by Side Diff: chrome/browser/search_engines/template_url_service.h

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 5 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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 virtual void Observe(int type, 264 virtual void Observe(int type,
265 const content::NotificationSource& source, 265 const content::NotificationSource& source,
266 const content::NotificationDetails& details) OVERRIDE; 266 const content::NotificationDetails& details) OVERRIDE;
267 267
268 // syncer::SyncableService implementation. 268 // syncer::SyncableService implementation.
269 269
270 // Returns all syncable TemplateURLs from this model as SyncData. This should 270 // Returns all syncable TemplateURLs from this model as SyncData. This should
271 // include every search engine and no Extension keywords. 271 // include every search engine and no Extension keywords.
272 virtual syncer::SyncDataList GetAllSyncData( 272 virtual syncer::SyncDataList GetAllSyncData(
273 syncable::ModelType type) const OVERRIDE; 273 syncer::ModelType type) const OVERRIDE;
274 // Process new search engine changes from Sync, merging them into our local 274 // Process new search engine changes from Sync, merging them into our local
275 // data. This may send notifications if local search engines are added, 275 // data. This may send notifications if local search engines are added,
276 // updated or removed. 276 // updated or removed.
277 virtual syncer::SyncError ProcessSyncChanges( 277 virtual syncer::SyncError ProcessSyncChanges(
278 const tracked_objects::Location& from_here, 278 const tracked_objects::Location& from_here,
279 const syncer::SyncChangeList& change_list) OVERRIDE; 279 const syncer::SyncChangeList& change_list) OVERRIDE;
280 // Merge initial search engine data from Sync and push any local changes up 280 // Merge initial search engine data from Sync and push any local changes up
281 // to Sync. This may send notifications if local search engines are added, 281 // to Sync. This may send notifications if local search engines are added,
282 // updated or removed. 282 // updated or removed.
283 virtual syncer::SyncError MergeDataAndStartSyncing( 283 virtual syncer::SyncError MergeDataAndStartSyncing(
284 syncable::ModelType type, 284 syncer::ModelType type,
285 const syncer::SyncDataList& initial_sync_data, 285 const syncer::SyncDataList& initial_sync_data,
286 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, 286 scoped_ptr<syncer::SyncChangeProcessor> sync_processor,
287 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) OVERRIDE; 287 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) OVERRIDE;
288 virtual void StopSyncing(syncable::ModelType type) OVERRIDE; 288 virtual void StopSyncing(syncer::ModelType type) OVERRIDE;
289 289
290 // Processes a local TemplateURL change for Sync. |turl| is the TemplateURL 290 // Processes a local TemplateURL change for Sync. |turl| is the TemplateURL
291 // that has been modified, and |type| is the Sync ChangeType that took place. 291 // that has been modified, and |type| is the Sync ChangeType that took place.
292 // This may send a new SyncChange to the cloud. If our model has not yet been 292 // This may send a new SyncChange to the cloud. If our model has not yet been
293 // associated with Sync, or if this is triggered by a Sync change, then this 293 // associated with Sync, or if this is triggered by a Sync change, then this
294 // does nothing. 294 // does nothing.
295 void ProcessTemplateURLChange(const TemplateURL* turl, 295 void ProcessTemplateURLChange(const TemplateURL* turl,
296 syncer::SyncChange::SyncChangeType type); 296 syncer::SyncChange::SyncChangeType type);
297 297
298 Profile* profile() const { return profile_; } 298 Profile* profile() const { return profile_; }
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 679
680 // This is used to log the origin of changes to the default search provider. 680 // This is used to log the origin of changes to the default search provider.
681 // We set this value to increasingly specific values when we know what is the 681 // We set this value to increasingly specific values when we know what is the
682 // cause/origin of a default search change. 682 // cause/origin of a default search change.
683 DefaultSearchChangeOrigin dsp_change_origin_; 683 DefaultSearchChangeOrigin dsp_change_origin_;
684 684
685 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 685 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
686 }; 686 };
687 687
688 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 688 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_model_associator.cc ('k') | chrome/browser/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698