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

Side by Side Diff: webkit/browser/quota/storage_observer.h

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/browser/quota/storage_monitor.cc ('k') | webkit/browser/quota/storage_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_ 5 #ifndef WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_
6 #define WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_ 6 #define WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 #include "webkit/browser/quota/quota_client.h" 11 #include "webkit/browser/quota/quota_client.h"
12 #include "webkit/common/quota/quota_types.h" 12 #include "webkit/common/quota/quota_types.h"
13 13
14 namespace quota { 14 namespace storage {
15 15
16 // This interface is implemented by observers that wish to monitor storage 16 // This interface is implemented by observers that wish to monitor storage
17 // events, such as changes in quota or usage. 17 // events, such as changes in quota or usage.
18 class WEBKIT_STORAGE_BROWSER_EXPORT StorageObserver { 18 class WEBKIT_STORAGE_BROWSER_EXPORT StorageObserver {
19 public: 19 public:
20 struct WEBKIT_STORAGE_BROWSER_EXPORT Filter { 20 struct WEBKIT_STORAGE_BROWSER_EXPORT Filter {
21 // The storage type to monitor. This must not be kStorageTypeUnknown or 21 // The storage type to monitor. This must not be kStorageTypeUnknown or
22 // kStorageTypeQuotaNotManaged. 22 // kStorageTypeQuotaNotManaged.
23 StorageType storage_type; 23 StorageType storage_type;
24 24
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 bool operator==(const Event& other) const; 67 bool operator==(const Event& other) const;
68 }; 68 };
69 69
70 // Will be called on the IO thread when a storage event occurs. 70 // Will be called on the IO thread when a storage event occurs.
71 virtual void OnStorageEvent(const Event& event) = 0; 71 virtual void OnStorageEvent(const Event& event) = 0;
72 72
73 protected: 73 protected:
74 virtual ~StorageObserver() {} 74 virtual ~StorageObserver() {}
75 }; 75 };
76 76
77 } // namespace quota 77 } // namespace storage
78 78
79 #endif // WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_ 79 #endif // WEBKIT_BROWSER_QUOTA_STORAGE_OBSERVER_H_
OLDNEW
« no previous file with comments | « webkit/browser/quota/storage_monitor.cc ('k') | webkit/browser/quota/storage_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698