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

Side by Side Diff: Source/modules/quota/DeprecatedStorageInfo.cpp

Issue 367113005: Remove destructors from ScriptWrappable objects in modules/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add Finalizable transition type 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
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 28 matching lines...) Expand all
39 #include "modules/quota/StorageQuotaCallback.h" 39 #include "modules/quota/StorageQuotaCallback.h"
40 #include "modules/quota/StorageUsageCallback.h" 40 #include "modules/quota/StorageUsageCallback.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 DeprecatedStorageInfo::DeprecatedStorageInfo() 44 DeprecatedStorageInfo::DeprecatedStorageInfo()
45 { 45 {
46 ScriptWrappable::init(this); 46 ScriptWrappable::init(this);
47 } 47 }
48 48
49 DeprecatedStorageInfo::~DeprecatedStorageInfo() 49 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DeprecatedStorageInfo);
50 {
51 }
52 50
53 void DeprecatedStorageInfo::queryUsageAndQuota(ExecutionContext* executionContex t, int storageType, PassOwnPtr<StorageUsageCallback> successCallback, PassOwnPtr <StorageErrorCallback> errorCallback) 51 void DeprecatedStorageInfo::queryUsageAndQuota(ExecutionContext* executionContex t, int storageType, PassOwnPtr<StorageUsageCallback> successCallback, PassOwnPtr <StorageErrorCallback> errorCallback)
54 { 52 {
55 // Dispatching the request to DeprecatedStorageQuota, as this interface is d eprecated in favor of DeprecatedStorageQuota. 53 // Dispatching the request to DeprecatedStorageQuota, as this interface is d eprecated in favor of DeprecatedStorageQuota.
56 DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType); 54 DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType);
57 if (!storageQuota) { 55 if (!storageQuota) {
58 // Unknown storage type is requested. 56 // Unknown storage type is requested.
59 executionContext->postTask(StorageErrorCallback::CallbackTask::create(er rorCallback, NotSupportedError)); 57 executionContext->postTask(StorageErrorCallback::CallbackTask::create(er rorCallback, NotSupportedError));
60 return; 58 return;
61 } 59 }
(...skipping 27 matching lines...) Expand all
89 return 0; 87 return 0;
90 } 88 }
91 89
92 void DeprecatedStorageInfo::trace(Visitor* visitor) 90 void DeprecatedStorageInfo::trace(Visitor* visitor)
93 { 91 {
94 visitor->trace(m_temporaryStorage); 92 visitor->trace(m_temporaryStorage);
95 visitor->trace(m_persistentStorage); 93 visitor->trace(m_persistentStorage);
96 } 94 }
97 95
98 } // namespace WebCore 96 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698