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

Unified Diff: chrome/browser/remove_rows_table_model.h

Issue 2838037: Introduce RemoveRowTableModel interface, let GeolocationExceptionsTableModel derive from it. (Closed)
Patch Set: '' Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/remove_rows_table_model.h
diff --git a/chrome/browser/remove_rows_table_model.h b/chrome/browser/remove_rows_table_model.h
new file mode 100644
index 0000000000000000000000000000000000000000..564d91dbc8fb0b0c1b5c60e94f9aa8e8ca0defb0
--- /dev/null
+++ b/chrome/browser/remove_rows_table_model.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2010 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 CHROME_BROWSER_REMOVE_ROWS_TABLE_MODEL_H_
+#define CHROME_BROWSER_REMOVE_ROWS_TABLE_MODEL_H_
+
+#include <set>
+#include <vector>
+
+#include "app/table_model.h"
+
+// A table model that also supports removing rows. Used for example for the
+// content settings exception dialog for geolocation.
+class RemoveRowsTableModel : public TableModel {
+ public:
+ typedef std::set<size_t> Rows;
+
+ // Returns whether or not the rows can be removed.
+ virtual bool CanRemoveRows(const Rows& rows) const = 0;
+
+ // Remove the rows from the table.
+ virtual void RemoveRows(const Rows& rows) = 0;
+
+ // Removes all the rows.
+ virtual void RemoveAll() = 0;
+};
+
+#endif // CHROME_BROWSER_REMOVE_ROWS_TABLE_MODEL_H_
+

Powered by Google App Engine
This is Rietveld 408576698