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

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

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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_SYNC_GLUE_TYPED_URL_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_TYPED_URL_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_TYPED_URL_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_TYPED_URL_CHANGE_PROCESSOR_H_
7 7
8 #include "components/sync_driver/change_processor.h" 8 #include "components/sync_driver/change_processor.h"
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 class URLRow; 35 class URLRow;
36 }; 36 };
37 37
38 namespace browser_sync { 38 namespace browser_sync {
39 39
40 class DataTypeErrorHandler; 40 class DataTypeErrorHandler;
41 41
42 // This class is responsible for taking changes from the history backend and 42 // This class is responsible for taking changes from the history backend and
43 // applying them to the sync API 'syncable' model, and vice versa. All 43 // applying them to the sync API 'syncable' model, and vice versa. All
44 // operations and use of this class are from the UI thread. 44 // operations and use of this class are from the UI thread.
45 class TypedUrlChangeProcessor : public ChangeProcessor, 45 class TypedUrlChangeProcessor : public sync_driver::ChangeProcessor,
46 public content::NotificationObserver { 46 public content::NotificationObserver {
47 public: 47 public:
48 TypedUrlChangeProcessor(Profile* profile, 48 TypedUrlChangeProcessor(Profile* profile,
49 TypedUrlModelAssociator* model_associator, 49 TypedUrlModelAssociator* model_associator,
50 history::HistoryBackend* history_backend, 50 history::HistoryBackend* history_backend,
51 DataTypeErrorHandler* error_handler); 51 sync_driver::DataTypeErrorHandler* error_handler);
52 virtual ~TypedUrlChangeProcessor(); 52 virtual ~TypedUrlChangeProcessor();
53 53
54 // content::NotificationObserver implementation. 54 // content::NotificationObserver implementation.
55 // History -> sync API change application. 55 // History -> sync API change application.
56 virtual void Observe(int type, 56 virtual void Observe(int type,
57 const content::NotificationSource& source, 57 const content::NotificationSource& source,
58 const content::NotificationDetails& details) OVERRIDE; 58 const content::NotificationDetails& details) OVERRIDE;
59 59
60 // sync API model -> WebDataService change application. 60 // sync API model -> WebDataService change application.
61 virtual void ApplyChangesFromSyncModel( 61 virtual void ApplyChangesFromSyncModel(
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 bool disconnected_; 121 bool disconnected_;
122 base::Lock disconnect_lock_; 122 base::Lock disconnect_lock_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(TypedUrlChangeProcessor); 124 DISALLOW_COPY_AND_ASSIGN(TypedUrlChangeProcessor);
125 }; 125 };
126 126
127 } // namespace browser_sync 127 } // namespace browser_sync
128 128
129 #endif // CHROME_BROWSER_SYNC_GLUE_TYPED_URL_CHANGE_PROCESSOR_H_ 129 #endif // CHROME_BROWSER_SYNC_GLUE_TYPED_URL_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/theme_data_type_controller.cc ('k') | chrome/browser/sync/glue/typed_url_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698