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 CHROME_BROWSER_UNDO_BOOKMARK_UNDO_SERVICE_H_ | 5 #ifndef COMPONENTS_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
6 #define CHROME_BROWSER_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/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
11 #include "chrome/browser/undo/bookmark_renumber_observer.h" | |
12 #include "chrome/browser/undo/undo_manager.h" | |
13 #include "components/bookmarks/browser/base_bookmark_model_observer.h" | 11 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
14 #include "components/bookmarks/browser/bookmark_node_data.h" | 12 #include "components/bookmarks/browser/bookmark_node_data.h" |
15 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
| 14 #include "components/undo/bookmark_renumber_observer.h" |
| 15 #include "components/undo/undo_manager.h" |
16 | 16 |
17 namespace bookmarks { | 17 namespace bookmarks { |
18 class BookmarkModel; | 18 class BookmarkModel; |
19 class BookmarkModelObserver; | 19 class BookmarkModelObserver; |
20 } | 20 } |
21 | 21 |
22 // BookmarkUndoService -------------------------------------------------------- | 22 // BookmarkUndoService -------------------------------------------------------- |
23 | 23 |
24 // BookmarkUndoService is owned by the profile, and is responsible for observing | 24 // BookmarkUndoService is owned by the profile, and is responsible for observing |
25 // BookmarkModel changes in order to provide an undo for those changes. | 25 // BookmarkModel changes in order to provide an undo for those changes. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // BookmarkRenumberObserver: | 70 // BookmarkRenumberObserver: |
71 void OnBookmarkRenumbered(int64 old_id, int64 new_id) override; | 71 void OnBookmarkRenumbered(int64 old_id, int64 new_id) override; |
72 | 72 |
73 UndoManager undo_manager_; | 73 UndoManager undo_manager_; |
74 ScopedObserver<bookmarks::BookmarkModel, bookmarks::BookmarkModelObserver> | 74 ScopedObserver<bookmarks::BookmarkModel, bookmarks::BookmarkModelObserver> |
75 scoped_observer_; | 75 scoped_observer_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(BookmarkUndoService); | 77 DISALLOW_COPY_AND_ASSIGN(BookmarkUndoService); |
78 }; | 78 }; |
79 | 79 |
80 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_SERVICE_H_ | 80 #endif // COMPONENTS_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
OLD | NEW |