OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_ |
6 #define CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_ | 6 #define CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 class Profile; | 10 class BookmarkUndoService; |
| 11 class UndoManager; |
11 | 12 |
12 // ScopedSuspendBookmarkUndo -------------------------------------------------- | 13 // ScopedSuspendBookmarkUndo -------------------------------------------------- |
13 | 14 |
14 // Scopes the suspension of the undo tracking for non-user initiated changes | 15 // Scopes the suspension of the undo tracking for non-user initiated changes |
15 // such as those occuring during profile synchronization. | 16 // such as those occuring during account synchronization. |
16 class ScopedSuspendBookmarkUndo { | 17 class ScopedSuspendBookmarkUndo { |
17 public: | 18 public: |
18 explicit ScopedSuspendBookmarkUndo(Profile* profile); | 19 explicit ScopedSuspendBookmarkUndo( |
| 20 BookmarkUndoService* bookmark_undo_service); |
19 ~ScopedSuspendBookmarkUndo(); | 21 ~ScopedSuspendBookmarkUndo(); |
20 | 22 |
21 private: | 23 private: |
22 Profile* profile_; | 24 UndoManager* undo_manager_; |
23 | 25 |
24 DISALLOW_COPY_AND_ASSIGN(ScopedSuspendBookmarkUndo); | 26 DISALLOW_COPY_AND_ASSIGN(ScopedSuspendBookmarkUndo); |
25 }; | 27 }; |
26 | 28 |
27 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_ | 29 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_ |
OLD | NEW |