| 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 CHROME_BROWSER_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
| 6 #define CHROME_BROWSER_UNDO_BOOKMARK_UNDO_SERVICE_H_ | 6 #define CHROME_BROWSER_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "chrome/browser/undo/bookmark_renumber_observer.h" | 10 #include "chrome/browser/undo/bookmark_renumber_observer.h" |
| 11 #include "chrome/browser/undo/undo_manager.h" | 11 #include "chrome/browser/undo/undo_manager.h" |
| 12 #include "components/bookmarks/core/browser/base_bookmark_model_observer.h" | 12 #include "components/bookmarks/browser/base_bookmark_model_observer.h" |
| 13 #include "components/bookmarks/core/browser/bookmark_node_data.h" | 13 #include "components/bookmarks/browser/bookmark_node_data.h" |
| 14 #include "components/keyed_service/core/keyed_service.h" | 14 #include "components/keyed_service/core/keyed_service.h" |
| 15 | 15 |
| 16 class Profile; | 16 class Profile; |
| 17 namespace { | 17 namespace { |
| 18 class BookmarkUndoOperation; | 18 class BookmarkUndoOperation; |
| 19 } // namespace | 19 } // namespace |
| 20 | 20 |
| 21 // BookmarkUndoService -------------------------------------------------------- | 21 // BookmarkUndoService -------------------------------------------------------- |
| 22 | 22 |
| 23 // BookmarkUndoService is owned by the profile, and is responsible for observing | 23 // BookmarkUndoService is owned by the profile, and is responsible for observing |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // BookmarkRenumberObserver: | 60 // BookmarkRenumberObserver: |
| 61 virtual void OnBookmarkRenumbered(int64 old_id, int64 new_id) OVERRIDE; | 61 virtual void OnBookmarkRenumbered(int64 old_id, int64 new_id) OVERRIDE; |
| 62 | 62 |
| 63 Profile* profile_; | 63 Profile* profile_; |
| 64 UndoManager undo_manager_; | 64 UndoManager undo_manager_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(BookmarkUndoService); | 66 DISALLOW_COPY_AND_ASSIGN(BookmarkUndoService); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_SERVICE_H_ | 69 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_SERVICE_H_ |
| OLD | NEW |