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

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

Issue 6811003: [Sync] Make generic non-frontend thread datatype controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copy paste :( Created 9 years, 8 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_BOOKMARK_DATA_TYPE_CONTROLLER_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__
6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 virtual syncable::ModelType type() const; 32 virtual syncable::ModelType type() const;
33 33
34 // NotificationObserver interface. 34 // NotificationObserver interface.
35 virtual void Observe(NotificationType type, 35 virtual void Observe(NotificationType type,
36 const NotificationSource& source, 36 const NotificationSource& source,
37 const NotificationDetails& details); 37 const NotificationDetails& details);
38 38
39 private: 39 private:
40 // FrontendDataTypeController interface. 40 // FrontendDataTypeController interface.
41 virtual bool StartModels(); 41 virtual bool StartModels();
42 virtual void CleanupState(); 42 virtual void CleanUpState();
43 virtual void CreateSyncComponents(); 43 virtual void CreateSyncComponents();
44 virtual void RecordUnrecoverableError( 44 virtual void RecordUnrecoverableError(
45 const tracked_objects::Location& from_here, 45 const tracked_objects::Location& from_here,
46 const std::string& message); 46 const std::string& message);
47 virtual void RecordAssociationTime(base::TimeDelta time); 47 virtual void RecordAssociationTime(base::TimeDelta time);
48 virtual void RecordStartFailure(StartResult result); 48 virtual void RecordStartFailure(StartResult result);
49 49
50 NotificationRegistrar registrar_; 50 NotificationRegistrar registrar_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(BookmarkDataTypeController); 52 DISALLOW_COPY_AND_ASSIGN(BookmarkDataTypeController);
53 }; 53 };
54 54
55 } // namespace browser_sync 55 } // namespace browser_sync
56 56
57 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__ 57 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698