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

Unified Diff: storage/browser/quota/storage_monitor.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | « storage/browser/quota/special_storage_policy.cc ('k') | storage/browser/quota/storage_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/storage_monitor.h
diff --git a/webkit/browser/quota/storage_monitor.h b/storage/browser/quota/storage_monitor.h
similarity index 91%
rename from webkit/browser/quota/storage_monitor.h
rename to storage/browser/quota/storage_monitor.h
index e52fd18de55af68bd00e8248330bd67f8474b1b6..e21bb916f4c27e80cf6a05485c523aa628966870 100644
--- a/webkit/browser/quota/storage_monitor.h
+++ b/storage/browser/quota/storage_monitor.h
@@ -10,7 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
-#include "webkit/browser/quota/storage_observer.h"
+#include "storage/browser/quota/storage_observer.h"
namespace content {
class StorageMonitorTestBase;
@@ -22,7 +22,7 @@ class QuotaManager;
// This class dispatches storage events to observers of a common
// StorageObserver::Filter.
-class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE StorageObserverList {
+class STORAGE_EXPORT_PRIVATE StorageObserverList {
public:
StorageObserverList();
virtual ~StorageObserverList();
@@ -47,7 +47,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE StorageObserverList {
void ScheduleUpdateForObserver(StorageObserver* observer);
private:
- struct WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE ObserverState {
+ struct STORAGE_EXPORT_PRIVATE ObserverState {
GURL origin;
base::TimeTicks last_notification_time;
base::TimeDelta rate;
@@ -68,10 +68,9 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE StorageObserverList {
DISALLOW_COPY_AND_ASSIGN(StorageObserverList);
};
-
// Manages the storage observers of a common host. Caches the usage and quota of
// the host to avoid accumulating for every change.
-class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE HostStorageObservers {
+class STORAGE_EXPORT_PRIVATE HostStorageObservers {
public:
explicit HostStorageObservers(QuotaManager* quota_manager);
virtual ~HostStorageObservers();
@@ -79,9 +78,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE HostStorageObservers {
bool is_initialized() const { return initialized_; }
// Adds/removes an observer.
- void AddObserver(
- StorageObserver* observer,
- const StorageObserver::MonitorParams& params);
+ void AddObserver(StorageObserver* observer,
+ const StorageObserver::MonitorParams& params);
void RemoveObserver(StorageObserver* observer);
bool ContainsObservers() const;
@@ -116,9 +114,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE HostStorageObservers {
DISALLOW_COPY_AND_ASSIGN(HostStorageObservers);
};
-
// Manages the observers of a common storage type.
-class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE StorageTypeObservers {
+class STORAGE_EXPORT_PRIVATE StorageTypeObservers {
public:
explicit StorageTypeObservers(QuotaManager* quota_manager);
virtual ~StorageTypeObservers();
@@ -145,9 +142,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE StorageTypeObservers {
DISALLOW_COPY_AND_ASSIGN(StorageTypeObservers);
};
-
// Storage monitor manages observers and dispatches storage events to them.
-class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE StorageMonitor {
+class STORAGE_EXPORT_PRIVATE StorageMonitor {
public:
explicit StorageMonitor(QuotaManager* quota_manager);
virtual ~StorageMonitor();
« no previous file with comments | « storage/browser/quota/special_storage_policy.cc ('k') | storage/browser/quota/storage_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698