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

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

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 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 29 matching lines...) Expand all
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class ExecutionContext; 43 class ExecutionContext;
44 class Page; 44 class Page;
45 class ScriptPromise; 45 class ScriptPromise;
46 class ScriptState; 46 class ScriptState;
47 class StorageErrorCallback; 47 class StorageErrorCallback;
48 class StorageQuotaCallback; 48 class StorageQuotaCallback;
49 49
50 class StorageQuotaClient : public HeapSupplement<Page> { 50 class StorageQuotaClient : public Supplement<Page> {
51 WTF_MAKE_NONCOPYABLE(StorageQuotaClient); 51 WTF_MAKE_NONCOPYABLE(StorageQuotaClient);
52 public: 52 public:
53 StorageQuotaClient() { } 53 StorageQuotaClient() { }
54 virtual ~StorageQuotaClient() { } 54 virtual ~StorageQuotaClient() { }
55 55
56 virtual void requestQuota(ExecutionContext*, WebStorageQuotaType, unsigned l ong long newQuotaInBytes, StorageQuotaCallback*, StorageErrorCallback*) = 0; 56 virtual void requestQuota(ExecutionContext*, WebStorageQuotaType, unsigned l ong long newQuotaInBytes, StorageQuotaCallback*, StorageErrorCallback*) = 0;
57 virtual ScriptPromise requestPersistentQuota(ScriptState*, unsigned long lon g newQuotaInBytes) = 0; 57 virtual ScriptPromise requestPersistentQuota(ScriptState*, unsigned long lon g newQuotaInBytes) = 0;
58 58
59 static const char* supplementName(); 59 static const char* supplementName();
60 static StorageQuotaClient* from(ExecutionContext*); 60 static StorageQuotaClient* from(ExecutionContext*);
61 }; 61 };
62 62
63 MODULES_EXPORT void provideStorageQuotaClientTo(Page&, RawPtr<StorageQuotaClient >); 63 MODULES_EXPORT void provideStorageQuotaClientTo(Page&, RawPtr<StorageQuotaClient >);
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // StorageQuotaClient_h 67 #endif // StorageQuotaClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698