| 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 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" | 11 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" |
| 12 #include "components/bookmarks/core/browser/base_bookmark_model_observer.h" | 12 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
| 13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
| 14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
| 15 | 15 |
| 16 namespace browser_sync { | 16 namespace browser_sync { |
| 17 | 17 |
| 18 // A class that manages the startup and shutdown of bookmark sync. | 18 // A class that manages the startup and shutdown of bookmark sync. |
| 19 class BookmarkDataTypeController : public FrontendDataTypeController, | 19 class BookmarkDataTypeController : public FrontendDataTypeController, |
| 20 public content::NotificationObserver, | 20 public content::NotificationObserver, |
| 21 public BaseBookmarkModelObserver { | 21 public BaseBookmarkModelObserver { |
| 22 public: | 22 public: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // Have we installed ourselves as a BookmarkModel observer? | 57 // Have we installed ourselves as a BookmarkModel observer? |
| 58 bool installed_bookmark_observer_; | 58 bool installed_bookmark_observer_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(BookmarkDataTypeController); | 60 DISALLOW_COPY_AND_ASSIGN(BookmarkDataTypeController); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace browser_sync | 63 } // namespace browser_sync |
| 64 | 64 |
| 65 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__ | 65 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_DATA_TYPE_CONTROLLER_H__ |
| OLD | NEW |