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

Side by Side Diff: public/platform/WebStorageQuotaCallbacks.h

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « public/platform/WebSpeechSynthesisVoice.h ('k') | public/platform/WebThreadSafeData.h » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 17 matching lines...) Expand all
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 WebStorageQuotaCallbacks_h 31 #ifndef WebStorageQuotaCallbacks_h
32 #define WebStorageQuotaCallbacks_h 32 #define WebStorageQuotaCallbacks_h
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebPrivatePtr.h" 35 #include "WebPrivatePtr.h"
36 #include "WebStorageQuotaError.h" 36 #include "WebStorageQuotaError.h"
37 37
38 namespace WebCore { 38 namespace blink {
39 class StorageQuotaCallbacks; 39 class StorageQuotaCallbacks;
40 } 40 }
41 41
42 namespace WTF { template <typename T> class PassOwnPtr; } 42 namespace WTF { template <typename T> class PassOwnPtr; }
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class WebStorageQuotaCallbacksPrivate; 46 class WebStorageQuotaCallbacksPrivate;
47 47
48 class WebStorageQuotaCallbacks { 48 class WebStorageQuotaCallbacks {
49 public: 49 public:
50 ~WebStorageQuotaCallbacks() { reset(); } 50 ~WebStorageQuotaCallbacks() { reset(); }
51 WebStorageQuotaCallbacks() { } 51 WebStorageQuotaCallbacks() { }
52 WebStorageQuotaCallbacks(const WebStorageQuotaCallbacks& c) { assign(c); } 52 WebStorageQuotaCallbacks(const WebStorageQuotaCallbacks& c) { assign(c); }
53 WebStorageQuotaCallbacks& operator=(const WebStorageQuotaCallbacks& c) 53 WebStorageQuotaCallbacks& operator=(const WebStorageQuotaCallbacks& c)
54 { 54 {
55 assign(c); 55 assign(c);
56 return *this; 56 return *this;
57 } 57 }
58 58
59 BLINK_PLATFORM_EXPORT void reset(); 59 BLINK_PLATFORM_EXPORT void reset();
60 BLINK_PLATFORM_EXPORT void assign(const WebStorageQuotaCallbacks&); 60 BLINK_PLATFORM_EXPORT void assign(const WebStorageQuotaCallbacks&);
61 61
62 #if INSIDE_BLINK 62 #if INSIDE_BLINK
63 BLINK_PLATFORM_EXPORT WebStorageQuotaCallbacks(const WTF::PassOwnPtr<WebCore ::StorageQuotaCallbacks>&); 63 BLINK_PLATFORM_EXPORT WebStorageQuotaCallbacks(const WTF::PassOwnPtr<blink:: StorageQuotaCallbacks>&);
64 #endif 64 #endif
65 65
66 // Callback for WebFrameClient::queryStorageUsageAndQuota. 66 // Callback for WebFrameClient::queryStorageUsageAndQuota.
67 BLINK_PLATFORM_EXPORT void didQueryStorageUsageAndQuota(unsigned long long u sageInBytes, unsigned long long quotaInBytes); 67 BLINK_PLATFORM_EXPORT void didQueryStorageUsageAndQuota(unsigned long long u sageInBytes, unsigned long long quotaInBytes);
68 68
69 // Callback for WebFrameClient::requestStorageQuota. 69 // Callback for WebFrameClient::requestStorageQuota.
70 // This may return a smaller amount of quota than the requested. 70 // This may return a smaller amount of quota than the requested.
71 BLINK_PLATFORM_EXPORT void didGrantStorageQuota(unsigned long long usageInBy tes, unsigned long long grantedQuotaInBytes); 71 BLINK_PLATFORM_EXPORT void didGrantStorageQuota(unsigned long long usageInBy tes, unsigned long long grantedQuotaInBytes);
72 72
73 BLINK_PLATFORM_EXPORT void didFail(WebStorageQuotaError); 73 BLINK_PLATFORM_EXPORT void didFail(WebStorageQuotaError);
74 74
75 private: 75 private:
76 WebPrivatePtr<WebStorageQuotaCallbacksPrivate> m_private; 76 WebPrivatePtr<WebStorageQuotaCallbacksPrivate> m_private;
77 }; 77 };
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif // WebStorageQuotaCallbacks_h 81 #endif // WebStorageQuotaCallbacks_h
OLDNEW
« no previous file with comments | « public/platform/WebSpeechSynthesisVoice.h ('k') | public/platform/WebThreadSafeData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698