| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UNDO_BOOKMARK_UNDO_SERVICE_H_ | 5 #ifndef COMPONENTS_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
| 6 #define COMPONENTS_UNDO_BOOKMARK_UNDO_SERVICE_H_ | 6 #define COMPONENTS_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/scoped_observer.h" | 11 #include "base/scoped_observer.h" |
| 11 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 12 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
| 12 #include "components/bookmarks/browser/bookmark_node_data.h" | 13 #include "components/bookmarks/browser/bookmark_node_data.h" |
| 13 #include "components/bookmarks/browser/bookmark_undo_delegate.h" | 14 #include "components/bookmarks/browser/bookmark_undo_delegate.h" |
| 14 #include "components/keyed_service/core/keyed_service.h" | 15 #include "components/keyed_service/core/keyed_service.h" |
| 15 #include "components/undo/undo_manager.h" | 16 #include "components/undo/undo_manager.h" |
| 16 | 17 |
| 17 namespace bookmarks { | 18 namespace bookmarks { |
| 18 class BookmarkModel; | 19 class BookmarkModel; |
| 19 class BookmarkModelObserver; | 20 class BookmarkModelObserver; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bookmarks::BookmarkModel* model_; | 73 bookmarks::BookmarkModel* model_; |
| 73 bookmarks::BookmarkUndoProvider* undo_provider_; | 74 bookmarks::BookmarkUndoProvider* undo_provider_; |
| 74 UndoManager undo_manager_; | 75 UndoManager undo_manager_; |
| 75 ScopedObserver<bookmarks::BookmarkModel, bookmarks::BookmarkModelObserver> | 76 ScopedObserver<bookmarks::BookmarkModel, bookmarks::BookmarkModelObserver> |
| 76 scoped_observer_; | 77 scoped_observer_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(BookmarkUndoService); | 79 DISALLOW_COPY_AND_ASSIGN(BookmarkUndoService); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 #endif // COMPONENTS_UNDO_BOOKMARK_UNDO_SERVICE_H_ | 82 #endif // COMPONENTS_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
| OLD | NEW |