Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: chrome/browser/undo/bookmark_undo_utils.h

Issue 155913004: Eliminate Bookmarks dependence to bookmark_undo_utils.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for Android Unit Tests failing Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 Profile;
11 11
12 // ScopedSuspendBookmarkUndo -------------------------------------------------- 12 // ScopedSuspendBookmarkUndo --------------------------------------------------
13 13
14 // Scopes the suspension of the undo tracking for non-user initiated changes 14 // Scopes the suspension of the undo tracking for non-user initiated changes
15 // such as those occuring during profile synchronization. 15 // such as those occuring during profile synchronization.
16 class ScopedSuspendBookmarkUndo { 16 class ScopedSuspendBookmarkUndo {
17 public: 17 public:
18 explicit ScopedSuspendBookmarkUndo(Profile* profile); 18 explicit ScopedSuspendBookmarkUndo(Profile* profile);
19 ~ScopedSuspendBookmarkUndo(); 19 ~ScopedSuspendBookmarkUndo();
20 20
21 private: 21 private:
22 Profile* profile_; 22 Profile* profile_;
23 23
24 DISALLOW_COPY_AND_ASSIGN(ScopedSuspendBookmarkUndo); 24 DISALLOW_COPY_AND_ASSIGN(ScopedSuspendBookmarkUndo);
25 }; 25 };
26 26
27 // ScopedGroupBookmarkActions -------------------------------------------------
28
29 // Scopes the grouping of a set of changes into one undoable action.
30 class ScopedGroupBookmarkActions {
31 public:
32 explicit ScopedGroupBookmarkActions(Profile* profile);
33 ~ScopedGroupBookmarkActions();
34
35 private:
36 Profile* profile_;
37
38 DISALLOW_COPY_AND_ASSIGN(ScopedGroupBookmarkActions);
39 };
40
41 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_ 27 #endif // CHROME_BROWSER_UNDO_BOOKMARK_UNDO_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/undo/bookmark_undo_service.cc ('k') | chrome/browser/undo/bookmark_undo_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698