Remove the dependency of PasswordStore on BrowserContextKeyedService
[chromium-blink-merge.git] / chrome / browser / remove_rows_table_model.h
blob435c34e36bbb0efed08c6f3534fe762aed2b7a4e
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_REMOVE_ROWS_TABLE_MODEL_H_
6 #define CHROME_BROWSER_REMOVE_ROWS_TABLE_MODEL_H_
8 #include <set>
10 #include "ui/base/models/table_model.h"
12 // A table model that also supports removing rows. Used for example for the
13 // content settings exception dialog for geolocation.
14 class RemoveRowsTableModel : public ui::TableModel {
15 public:
16 typedef std::set<size_t> Rows;
18 // Returns whether or not the rows can be removed.
19 virtual bool CanRemoveRows(const Rows& rows) const = 0;
21 // Remove the rows from the table.
22 virtual void RemoveRows(const Rows& rows) = 0;
24 // Removes all the rows.
25 virtual void RemoveAll() = 0;
28 #endif // CHROME_BROWSER_REMOVE_ROWS_TABLE_MODEL_H_