summaryrefslogtreecommitdiffstats
path: root/components/undo/bookmark_renumber_observer.h
blob: 4dc8df058eb44ff6a482fd69fe2dd63ea45b0b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_UNDO_BOOKMARK_RENUMBER_OBSERVER_H_
#define COMPONENTS_UNDO_BOOKMARK_RENUMBER_OBSERVER_H_

#include "base/basictypes.h"

class BookmarkRenumberObserver {
 public:
  // Invoked when a bookmark id has been renumbered so that any
  // BookmarkUndoOperations that refer to that bookmark can be updated.
  virtual void OnBookmarkRenumbered(int64 old_id, int64 new_id) = 0;

 protected:
  virtual ~BookmarkRenumberObserver() {}
};

#endif  // COMPONENTS_UNDO_BOOKMARK_RENUMBER_OBSERVER_H_