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

Side by Side Diff: Source/web/StorageQuotaClientImpl.h

Issue 676183002: Oilpan: simplify quota storage callbacks objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 21 matching lines...) Expand all
32 #define StorageQuotaClientImpl_h 32 #define StorageQuotaClientImpl_h
33 33
34 #include "modules/quota/StorageQuotaClient.h" 34 #include "modules/quota/StorageQuotaClient.h"
35 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class StorageQuotaClientImpl : public NoBaseWillBeGarbageCollectedFinalized<Stor ageQuotaClientImpl>, public StorageQuotaClient { 39 class StorageQuotaClientImpl : public NoBaseWillBeGarbageCollectedFinalized<Stor ageQuotaClientImpl>, public StorageQuotaClient {
40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StorageQuotaClientImpl); 40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StorageQuotaClientImpl);
41 public: 41 public:
42 static PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> create(); 42 static PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> create()
43 {
44 return adoptPtrWillBeNoop(new StorageQuotaClientImpl());
45 }
43 46
44 virtual ~StorageQuotaClientImpl(); 47 virtual ~StorageQuotaClientImpl();
45 48
46 virtual void requestQuota(ExecutionContext*, WebStorageQuotaType, unsigned l ong long newQuotaInBytes, StorageQuotaCallback*, StorageErrorCallback*) override ; 49 virtual void requestQuota(ExecutionContext*, WebStorageQuotaType, unsigned l ong long newQuotaInBytes, StorageQuotaCallback*, StorageErrorCallback*) override ;
47 virtual ScriptPromise requestPersistentQuota(ScriptState*, unsigned long lon g newQuotaInBytes) override; 50 virtual ScriptPromise requestPersistentQuota(ScriptState*, unsigned long lon g newQuotaInBytes) override;
48 51
49 virtual void trace(Visitor* visitor) override { StorageQuotaClient::trace(vi sitor); } 52 virtual void trace(Visitor* visitor) override { StorageQuotaClient::trace(vi sitor); }
50 53
51 private: 54 private:
52 StorageQuotaClientImpl(); 55 StorageQuotaClientImpl();
53 }; 56 };
54 57
55 } // namespace blink 58 } // namespace blink
56 59
57 #endif // StorageQuotaClientImpl_h 60 #endif // StorageQuotaClientImpl_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebStorageQuotaCallbacks.cpp ('k') | Source/web/StorageQuotaClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698