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

Side by Side Diff: webkit/appcache/appcache_quota_client.cc

Issue 7470008: Improve IndexedDB's quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style problems Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/appcache/appcache_quota_client.h" 5 #include "webkit/appcache/appcache_quota_client.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "webkit/appcache/appcache_service.h" 10 #include "webkit/appcache/appcache_service.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void AppCacheQuotaClient::GetOriginsForType( 94 void AppCacheQuotaClient::GetOriginsForType(
95 quota::StorageType type, 95 quota::StorageType type,
96 GetOriginsCallback* callback_ptr) { 96 GetOriginsCallback* callback_ptr) {
97 GetOriginsHelper(type, std::string(), callback_ptr); 97 GetOriginsHelper(type, std::string(), callback_ptr);
98 } 98 }
99 99
100 void AppCacheQuotaClient::GetOriginsForHost( 100 void AppCacheQuotaClient::GetOriginsForHost(
101 quota::StorageType type, 101 quota::StorageType type,
102 const std::string& host, 102 const std::string& host,
103 GetOriginsCallback* callback_ptr) { 103 GetOriginsCallback* callback_ptr) {
104 DCHECK(!host.empty()); 104 // DCHECK(!host.empty());
dgrogan 2011/07/26 01:57:08 This was causing our existing browser tests to fai
105 GetOriginsHelper(type, host, callback_ptr); 105 GetOriginsHelper(type, host, callback_ptr);
106 } 106 }
107 107
108 void AppCacheQuotaClient::DeleteOriginData(const GURL& origin, 108 void AppCacheQuotaClient::DeleteOriginData(const GURL& origin,
109 quota::StorageType type, 109 quota::StorageType type,
110 DeletionCallback* callback_ptr) { 110 DeletionCallback* callback_ptr) {
111 DCHECK(callback_ptr); 111 DCHECK(callback_ptr);
112 DCHECK(!quota_manager_is_destroyed_); 112 DCHECK(!quota_manager_is_destroyed_);
113 113
114 scoped_ptr<DeletionCallback> callback(callback_ptr); 114 scoped_ptr<DeletionCallback> callback(callback_ptr);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 current_delete_request_callback_.reset(); 259 current_delete_request_callback_.reset();
260 service_delete_callback_.release()->Cancel(); 260 service_delete_callback_.release()->Cancel();
261 } else { 261 } else {
262 service_delete_callback_ = NULL; 262 service_delete_callback_ = NULL;
263 } 263 }
264 if (quota_manager_is_destroyed_) 264 if (quota_manager_is_destroyed_)
265 delete this; 265 delete this;
266 } 266 }
267 267
268 } // namespace appcache 268 } // namespace appcache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698