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

Unified Diff: Source/modules/quota/WebStorageQuotaCallbacksImpl.h

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/quota/StorageUsageCallback.h ('k') | Source/modules/quota/WebStorageQuotaCallbacksImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/quota/WebStorageQuotaCallbacksImpl.h
diff --git a/Source/modules/quota/WebStorageQuotaCallbacksImpl.h b/Source/modules/quota/WebStorageQuotaCallbacksImpl.h
index 97ba9cbb4aee8d6301fd6005f0debfaa4c0d8a6b..272c4f53156597e7000df859e68626ae6c0acc3e 100644
--- a/Source/modules/quota/WebStorageQuotaCallbacksImpl.h
+++ b/Source/modules/quota/WebStorageQuotaCallbacksImpl.h
@@ -44,13 +44,13 @@ namespace WebCore {
class WebStorageQuotaCallbacksImpl : public blink::WebStorageQuotaCallbacks {
public:
// The class is self-destructed and thus we have leakedPtr constructors.
- static WebStorageQuotaCallbacksImpl* createLeakedPtr(PassRefPtr<StorageUsageCallback> success, PassRefPtr<StorageErrorCallback> error)
+ static WebStorageQuotaCallbacksImpl* createLeakedPtr(PassOwnPtr<StorageUsageCallback> success, PassOwnPtr<StorageErrorCallback> error)
{
OwnPtr<WebStorageQuotaCallbacksImpl> callbacks = adoptPtr(new WebStorageQuotaCallbacksImpl(success, error));
return callbacks.leakPtr();
}
- static WebStorageQuotaCallbacksImpl* createLeakedPtr(PassRefPtr<StorageQuotaCallback> success, PassRefPtr<StorageErrorCallback> error)
+ static WebStorageQuotaCallbacksImpl* createLeakedPtr(PassOwnPtr<StorageQuotaCallback> success, PassOwnPtr<StorageErrorCallback> error)
{
OwnPtr<WebStorageQuotaCallbacksImpl> callbacks = adoptPtr(new WebStorageQuotaCallbacksImpl(success, error));
return callbacks.leakPtr();
@@ -63,12 +63,12 @@ public:
virtual void didFail(blink::WebStorageQuotaError);
private:
- WebStorageQuotaCallbacksImpl(PassRefPtr<StorageUsageCallback>, PassRefPtr<StorageErrorCallback>);
- WebStorageQuotaCallbacksImpl(PassRefPtr<StorageQuotaCallback>, PassRefPtr<StorageErrorCallback>);
+ WebStorageQuotaCallbacksImpl(PassOwnPtr<StorageUsageCallback>, PassOwnPtr<StorageErrorCallback>);
+ WebStorageQuotaCallbacksImpl(PassOwnPtr<StorageQuotaCallback>, PassOwnPtr<StorageErrorCallback>);
- RefPtr<StorageUsageCallback> m_usageCallback;
- RefPtr<StorageQuotaCallback> m_quotaCallback;
- RefPtr<StorageErrorCallback> m_errorCallback;
+ OwnPtr<StorageUsageCallback> m_usageCallback;
+ OwnPtr<StorageQuotaCallback> m_quotaCallback;
+ OwnPtr<StorageErrorCallback> m_errorCallback;
};
} // namespace
« no previous file with comments | « Source/modules/quota/StorageUsageCallback.h ('k') | Source/modules/quota/WebStorageQuotaCallbacksImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698