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

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

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 2 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 } 53 }
54 54
55 void DeprecatedStorageQuota::queryUsageAndQuota(ExecutionContext* executionConte xt, StorageUsageCallback* successCallback, StorageErrorCallback* errorCallback) 55 void DeprecatedStorageQuota::queryUsageAndQuota(ExecutionContext* executionConte xt, StorageUsageCallback* successCallback, StorageErrorCallback* errorCallback)
56 { 56 {
57 ASSERT(executionContext); 57 ASSERT(executionContext);
58 58
59 WebStorageQuotaType storageType = static_cast<WebStorageQuotaType>(m_type); 59 WebStorageQuotaType storageType = static_cast<WebStorageQuotaType>(m_type);
60 if (storageType != WebStorageQuotaTypeTemporary && storageType != WebStorage QuotaTypePersistent) { 60 if (storageType != WebStorageQuotaTypeTemporary && storageType != WebStorage QuotaTypePersistent) {
61 // Unknown storage type is requested. 61 // Unknown storage type is requested.
62 executionContext->postTask(FROM_HERE, StorageErrorCallback::CallbackTask ::create(errorCallback, NotSupportedError)); 62 executionContext->postTask(BLINK_FROM_HERE, StorageErrorCallback::Callba ckTask::create(errorCallback, NotSupportedError));
63 return; 63 return;
64 } 64 }
65 65
66 SecurityOrigin* securityOrigin = executionContext->securityOrigin(); 66 SecurityOrigin* securityOrigin = executionContext->securityOrigin();
67 if (securityOrigin->isUnique()) { 67 if (securityOrigin->isUnique()) {
68 executionContext->postTask(FROM_HERE, StorageErrorCallback::CallbackTask ::create(errorCallback, NotSupportedError)); 68 executionContext->postTask(BLINK_FROM_HERE, StorageErrorCallback::Callba ckTask::create(errorCallback, NotSupportedError));
69 return; 69 return;
70 } 70 }
71 71
72 KURL storagePartition = KURL(KURL(), securityOrigin->toString()); 72 KURL storagePartition = KURL(KURL(), securityOrigin->toString());
73 StorageQuotaCallbacks* callbacks = DeprecatedStorageQuotaCallbacksImpl::crea te(successCallback, errorCallback); 73 StorageQuotaCallbacks* callbacks = DeprecatedStorageQuotaCallbacksImpl::crea te(successCallback, errorCallback);
74 Platform::current()->queryStorageUsageAndQuota(storagePartition, storageType , callbacks); 74 Platform::current()->queryStorageUsageAndQuota(storagePartition, storageType , callbacks);
75 } 75 }
76 76
77 void DeprecatedStorageQuota::requestQuota(ExecutionContext* executionContext, un signed long long newQuotaInBytes, StorageQuotaCallback* successCallback, Storage ErrorCallback* errorCallback) 77 void DeprecatedStorageQuota::requestQuota(ExecutionContext* executionContext, un signed long long newQuotaInBytes, StorageQuotaCallback* successCallback, Storage ErrorCallback* errorCallback)
78 { 78 {
79 ASSERT(executionContext); 79 ASSERT(executionContext);
80 80
81 WebStorageQuotaType storageType = static_cast<WebStorageQuotaType>(m_type); 81 WebStorageQuotaType storageType = static_cast<WebStorageQuotaType>(m_type);
82 if (storageType != WebStorageQuotaTypeTemporary && storageType != WebStorage QuotaTypePersistent) { 82 if (storageType != WebStorageQuotaTypeTemporary && storageType != WebStorage QuotaTypePersistent) {
83 // Unknown storage type is requested. 83 // Unknown storage type is requested.
84 executionContext->postTask(FROM_HERE, StorageErrorCallback::CallbackTask ::create(errorCallback, NotSupportedError)); 84 executionContext->postTask(BLINK_FROM_HERE, StorageErrorCallback::Callba ckTask::create(errorCallback, NotSupportedError));
85 return; 85 return;
86 } 86 }
87 87
88 StorageQuotaClient* client = StorageQuotaClient::from(executionContext); 88 StorageQuotaClient* client = StorageQuotaClient::from(executionContext);
89 if (!client) { 89 if (!client) {
90 executionContext->postTask(FROM_HERE, StorageErrorCallback::CallbackTask ::create(errorCallback, NotSupportedError)); 90 executionContext->postTask(BLINK_FROM_HERE, StorageErrorCallback::Callba ckTask::create(errorCallback, NotSupportedError));
91 return; 91 return;
92 } 92 }
93 93
94 client->requestQuota(executionContext, storageType, newQuotaInBytes, success Callback, errorCallback); 94 client->requestQuota(executionContext, storageType, newQuotaInBytes, success Callback, errorCallback);
95 } 95 }
96 96
97 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698