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: webkit/quota/quota_manager.cc

Issue 10829258: Clean-up inline members of nested classes (webkit/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « webkit/quota/quota_manager.h ('k') | webkit/quota/quota_temporary_storage_evictor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/quota/quota_manager.h" 5 #include "webkit/quota/quota_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 10
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 } 1334 }
1335 1335
1336 QuotaManager::~QuotaManager() { 1336 QuotaManager::~QuotaManager() {
1337 proxy_->manager_ = NULL; 1337 proxy_->manager_ = NULL;
1338 std::for_each(clients_.begin(), clients_.end(), 1338 std::for_each(clients_.begin(), clients_.end(),
1339 std::mem_fun(&QuotaClient::OnQuotaManagerDestroyed)); 1339 std::mem_fun(&QuotaClient::OnQuotaManagerDestroyed));
1340 if (database_.get()) 1340 if (database_.get())
1341 db_thread_->DeleteSoon(FROM_HERE, database_.release()); 1341 db_thread_->DeleteSoon(FROM_HERE, database_.release());
1342 } 1342 }
1343 1343
1344 QuotaManager::EvictionContext::EvictionContext()
1345 : evicted_type(kStorageTypeUnknown) {
1346 }
1347
1348 QuotaManager::EvictionContext::~EvictionContext() {
1349 }
1350
1344 void QuotaManager::LazyInitialize() { 1351 void QuotaManager::LazyInitialize() {
1345 DCHECK(io_thread_->BelongsToCurrentThread()); 1352 DCHECK(io_thread_->BelongsToCurrentThread());
1346 if (database_.get()) { 1353 if (database_.get()) {
1347 // Initialization seems to be done already. 1354 // Initialization seems to be done already.
1348 return; 1355 return;
1349 } 1356 }
1350 1357
1351 // Use an empty path to open an in-memory only databse for incognito. 1358 // Use an empty path to open an in-memory only databse for incognito.
1352 database_.reset(new QuotaDatabase(is_incognito_ ? FilePath() : 1359 database_.reset(new QuotaDatabase(is_incognito_ ? FilePath() :
1353 profile_path_.AppendASCII(kDatabaseName))); 1360 profile_path_.AppendASCII(kDatabaseName)));
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 1834
1828 QuotaManagerProxy::QuotaManagerProxy( 1835 QuotaManagerProxy::QuotaManagerProxy(
1829 QuotaManager* manager, base::SingleThreadTaskRunner* io_thread) 1836 QuotaManager* manager, base::SingleThreadTaskRunner* io_thread)
1830 : manager_(manager), io_thread_(io_thread) { 1837 : manager_(manager), io_thread_(io_thread) {
1831 } 1838 }
1832 1839
1833 QuotaManagerProxy::~QuotaManagerProxy() { 1840 QuotaManagerProxy::~QuotaManagerProxy() {
1834 } 1841 }
1835 1842
1836 } // namespace quota 1843 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/quota/quota_manager.h ('k') | webkit/quota/quota_temporary_storage_evictor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698