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

Unified Diff: chrome/browser/notifications/notification_exceptions_table_model.h

Issue 7994009: notifications: Remove NotificationExceptionsTableModel as it's no longer used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_exceptions_table_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_exceptions_table_model.h
diff --git a/chrome/browser/notifications/notification_exceptions_table_model.h b/chrome/browser/notifications/notification_exceptions_table_model.h
deleted file mode 100644
index bd6ad8ee6e3b1282b01975f16fe8efa27a04add9..0000000000000000000000000000000000000000
--- a/chrome/browser/notifications/notification_exceptions_table_model.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2011 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_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_
-#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_
-#pragma once
-
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/notifications/desktop_notification_service.h"
-#include "chrome/browser/remove_rows_table_model.h"
-#include "content/common/notification_observer.h"
-
-class NotificationExceptionsTableModel : public RemoveRowsTableModel,
- public NotificationObserver {
- public:
- explicit NotificationExceptionsTableModel(
- DesktopNotificationService* service);
- virtual ~NotificationExceptionsTableModel();
-
- // Overridden from RemoveRowsTableModel:
- virtual bool CanRemoveRows(const Rows& rows) const;
- virtual void RemoveRows(const Rows& rows);
- virtual void RemoveAll();
-
- // Overridden from TableModel:
- virtual int RowCount() OVERRIDE;
- virtual string16 GetText(int row, int column_id) OVERRIDE;
- virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE;
-
- // Overridden from NotificationObserver:
- virtual void Observe(int type,
- const NotificationSource& source,
- const NotificationDetails& details);
- private:
- struct Entry;
-
- void LoadEntries();
-
- DesktopNotificationService* service_;
-
- typedef std::vector<Entry> EntriesVector;
- EntriesVector entries_;
-
- // We use this variable to prevent ourselves from handling further changes
- // that we ourselves caused.
- bool updates_disabled_;
- NotificationRegistrar registrar_;
- ui::TableModelObserver* observer_;
-
- DISALLOW_COPY_AND_ASSIGN(NotificationExceptionsTableModel);
-};
-
-#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_exceptions_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698