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

Unified Diff: chrome/browser/extensions/app_notification_storage.h

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 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/extensions/app_notification_storage.h
diff --git a/chrome/browser/extensions/app_notification_storage.h b/chrome/browser/extensions/app_notification_storage.h
deleted file mode 100644
index 5fda2fd44b0f067b0fd3c0390a8ee5a61ac1c697..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/app_notification_storage.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 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_EXTENSIONS_APP_NOTIFICATION_STORAGE_H__
-#define CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_STORAGE_H__
-
-#include <set>
-
-#include "chrome/browser/extensions/app_notification.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace extensions {
-
-// Represents storage for app notifications for a particular extension id.
-//
-// IMPORTANT NOTE: Instances of this class should only be used on the FILE
-// thread.
-class AppNotificationStorage {
- public:
- // Must be called on the FILE thread. The storage will be created at |path|.
- static AppNotificationStorage* Create(const base::FilePath& path);
-
- virtual ~AppNotificationStorage();
-
- // Get the set of extension id's that have entries, putting them into
- // |result|.
- virtual bool GetExtensionIds(std::set<std::string>* result) = 0;
-
- // Gets the list of stored notifications for extension_id. On success, writes
- // results into |result|. On error, returns false.
- virtual bool Get(const std::string& extension_id,
- AppNotificationList* result) = 0;
-
- // Writes the |list| for |extension_id| into storage.
- virtual bool Set(const std::string& extension_id,
- const AppNotificationList& list) = 0;
-
- // Deletes all data for |extension_id|.
- virtual bool Delete(const std::string& extension_id) = 0;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_STORAGE_H__
« no previous file with comments | « chrome/browser/extensions/app_notification_manager_unittest.cc ('k') | chrome/browser/extensions/app_notification_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698