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

Side by Side Diff: third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.h

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef DeprecatedStorageQuota_h 31 #ifndef DeprecatedStorageQuota_h
32 #define DeprecatedStorageQuota_h 32 #define DeprecatedStorageQuota_h
33 33
34 #include "bindings/core/v8/ScriptWrappable.h" 34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class ExecutionContext; 39 class ScriptState;
40 class StorageErrorCallback; 40 class StorageErrorCallback;
41 class StorageQuotaCallback; 41 class StorageQuotaCallback;
42 class StorageUsageCallback; 42 class StorageUsageCallback;
43 43
44 class DeprecatedStorageQuota final 44 class DeprecatedStorageQuota final
45 : public GarbageCollected<DeprecatedStorageQuota>, 45 : public GarbageCollected<DeprecatedStorageQuota>,
46 public ScriptWrappable { 46 public ScriptWrappable {
47 DEFINE_WRAPPERTYPEINFO(); 47 DEFINE_WRAPPERTYPEINFO();
48 48
49 public: 49 public:
50 enum Type { 50 enum Type {
51 Temporary, 51 Temporary,
52 Persistent, 52 Persistent,
53 }; 53 };
54 54
55 static DeprecatedStorageQuota* create(Type type) { 55 static DeprecatedStorageQuota* create(Type type) {
56 return new DeprecatedStorageQuota(type); 56 return new DeprecatedStorageQuota(type);
57 } 57 }
58 58
59 void queryUsageAndQuota(ExecutionContext*, 59 void queryUsageAndQuota(ScriptState*,
60 StorageUsageCallback*, 60 StorageUsageCallback*,
61 StorageErrorCallback*); 61 StorageErrorCallback*);
62 62
63 void requestQuota(ExecutionContext*, 63 void requestQuota(ScriptState*,
64 unsigned long long newQuotaInBytes, 64 unsigned long long newQuotaInBytes,
65 StorageQuotaCallback*, 65 StorageQuotaCallback*,
66 StorageErrorCallback*); 66 StorageErrorCallback*);
67 67
68 DEFINE_INLINE_TRACE() {} 68 DEFINE_INLINE_TRACE() {}
69 69
70 private: 70 private:
71 explicit DeprecatedStorageQuota(Type); 71 explicit DeprecatedStorageQuota(Type);
72 Type m_type; 72 Type m_type;
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif // DeprecatedStorageQuota_h 77 #endif // DeprecatedStorageQuota_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698