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

Side by Side Diff: Source/modules/quota/StorageInfo.h

Issue 294953002: Oilpan: enable Oilpan by default in modules/quota. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/modules/quota/NavigatorStorageQuota.h ('k') | Source/modules/quota/StorageInfo.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef StorageInfo_h 31 #ifndef StorageInfo_h
32 #define StorageInfo_h 32 #define StorageInfo_h
33 33
34 #include "bindings/v8/ScriptWrappable.h" 34 #include "bindings/v8/ScriptWrappable.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/PassRefPtr.h"
37 #include "wtf/RefCounted.h"
38 #include "wtf/RefPtr.h"
39 36
40 namespace WebCore { 37 namespace WebCore {
41 38
42 class StorageInfo FINAL : public RefCountedWillBeGarbageCollectedFinalized<Stora geInfo>, public ScriptWrappable { 39 class StorageInfo FINAL : public GarbageCollectedFinalized<StorageInfo>, public ScriptWrappable {
43 public: 40 public:
44 static PassRefPtrWillBeRawPtr<StorageInfo> create(unsigned long long usage, unsigned long long quota) 41 static StorageInfo* create(unsigned long long usage, unsigned long long quot a)
45 { 42 {
46 return adoptRefWillBeNoop(new StorageInfo(usage, quota)); 43 return new StorageInfo(usage, quota);
47 } 44 }
48 45
49 unsigned long long usage() const { return m_usage; } 46 unsigned long long usage() const { return m_usage; }
50 unsigned long long quota() const { return m_quota; } 47 unsigned long long quota() const { return m_quota; }
51 48
52 ~StorageInfo(); 49 ~StorageInfo();
53 50
54 void trace(Visitor*) { } 51 void trace(Visitor*) { }
55 52
56 private: 53 private:
57 StorageInfo(unsigned long long usage, unsigned long long quota); 54 StorageInfo(unsigned long long usage, unsigned long long quota);
58 55
59 unsigned long long m_usage; 56 unsigned long long m_usage;
60 unsigned long long m_quota; 57 unsigned long long m_quota;
61 }; 58 };
62 59
63 } // namespace WebCore 60 } // namespace WebCore
64 61
65 #endif // StorageInfo_h 62 #endif // StorageInfo_h
OLDNEW
« no previous file with comments | « Source/modules/quota/NavigatorStorageQuota.h ('k') | Source/modules/quota/StorageInfo.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698