| OLD | NEW |
| 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 COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_DATA_TYPE_CONTROLLER_H__ |
| 6 #define COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_DATA_TYPE_CONTROLLER_H__ | 6 #define COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_DATA_TYPE_CONTROLLER_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
| 12 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 13 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
| 13 #include "components/history/core/browser/history_service_observer.h" | 14 #include "components/history/core/browser/history_service_observer.h" |
| 14 #include "components/sync_driver/frontend_data_type_controller.h" | 15 #include "components/sync_driver/frontend_data_type_controller.h" |
| 15 | 16 |
| 16 namespace browser_sync { | 17 namespace browser_sync { |
| 17 | 18 |
| 18 // A class that manages the startup and shutdown of bookmark sync. | 19 // A class that manages the startup and shutdown of bookmark sync. |
| 19 class BookmarkDataTypeController : public FrontendDataTypeController, | 20 class BookmarkDataTypeController : public FrontendDataTypeController, |
| 20 public bookmarks::BaseBookmarkModelObserver, | 21 public bookmarks::BaseBookmarkModelObserver, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 history_service_observer_; | 56 history_service_observer_; |
| 56 ScopedObserver<bookmarks::BookmarkModel, BaseBookmarkModelObserver> | 57 ScopedObserver<bookmarks::BookmarkModel, BaseBookmarkModelObserver> |
| 57 bookmark_model_observer_; | 58 bookmark_model_observer_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(BookmarkDataTypeController); | 60 DISALLOW_COPY_AND_ASSIGN(BookmarkDataTypeController); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace browser_sync | 63 } // namespace browser_sync |
| 63 | 64 |
| 64 #endif // COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_DATA_TYPE_CONTROLLER_H__ | 65 #endif // COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_DATA_TYPE_CONTROLLER_H__ |
| OLD | NEW |