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

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

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Unknown storage type is requested. 64 // Unknown storage type is requested.
65 executionContext->postTask(BLINK_FROM_HERE, StorageErrorCallback::create SameThreadTask(errorCallback, NotSupportedError)); 65 executionContext->postTask(BLINK_FROM_HERE, StorageErrorCallback::create SameThreadTask(errorCallback, NotSupportedError));
66 return; 66 return;
67 } 67 }
68 storageQuota->requestQuota(executionContext, newQuotaInBytes, successCallbac k, errorCallback); 68 storageQuota->requestQuota(executionContext, newQuotaInBytes, successCallbac k, errorCallback);
69 } 69 }
70 70
71 DeprecatedStorageQuota* DeprecatedStorageInfo::getStorageQuota(int storageType) 71 DeprecatedStorageQuota* DeprecatedStorageInfo::getStorageQuota(int storageType)
72 { 72 {
73 switch (storageType) { 73 switch (storageType) {
74 case TEMPORARY: 74 case kTemporary:
75 if (!m_temporaryStorage) 75 if (!m_temporaryStorage)
76 m_temporaryStorage = DeprecatedStorageQuota::create(DeprecatedStorag eQuota::Temporary); 76 m_temporaryStorage = DeprecatedStorageQuota::create(DeprecatedStorag eQuota::Temporary);
77 return m_temporaryStorage.get(); 77 return m_temporaryStorage.get();
78 case PERSISTENT: 78 case kPersistent:
79 if (!m_persistentStorage) 79 if (!m_persistentStorage)
80 m_persistentStorage = DeprecatedStorageQuota::create(DeprecatedStora geQuota::Persistent); 80 m_persistentStorage = DeprecatedStorageQuota::create(DeprecatedStora geQuota::Persistent);
81 return m_persistentStorage.get(); 81 return m_persistentStorage.get();
82 } 82 }
83 return 0; 83 return 0;
84 } 84 }
85 85
86 DEFINE_TRACE(DeprecatedStorageInfo) 86 DEFINE_TRACE(DeprecatedStorageInfo)
87 { 87 {
88 visitor->trace(m_temporaryStorage); 88 visitor->trace(m_temporaryStorage);
89 visitor->trace(m_persistentStorage); 89 visitor->trace(m_persistentStorage);
90 } 90 }
91 91
92 } // namespace blink 92 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698