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

Side by Side Diff: webkit/quota/quota_manager.cc

Issue 7812036: Update base/timer.h code to pass through Location from call sites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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_database.cc ('k') | webkit/quota/quota_temporary_storage_evictor.cc » ('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) 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/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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 set_db_disabled(true); 500 set_db_disabled(true);
501 } 501 }
502 } 502 }
503 if (!db_disabled()) 503 if (!db_disabled())
504 need_initialize_origins_ = !database()->IsOriginDatabaseBootstrapped(); 504 need_initialize_origins_ = !database()->IsOriginDatabaseBootstrapped();
505 } 505 }
506 506
507 virtual void DatabaseTaskCompleted() OVERRIDE { 507 virtual void DatabaseTaskCompleted() OVERRIDE {
508 manager()->need_initialize_origins_ = need_initialize_origins_; 508 manager()->need_initialize_origins_ = need_initialize_origins_;
509 manager()->DidInitializeTemporaryGlobalQuota(temporary_storage_quota_); 509 manager()->DidInitializeTemporaryGlobalQuota(temporary_storage_quota_);
510 manager()->histogram_timer_.Start(QuotaManager::kReportHistogramInterval, 510 manager()->histogram_timer_.Start(FROM_HERE,
511 QuotaManager::kReportHistogramInterval,
511 manager(), 512 manager(),
512 &QuotaManager::ReportHistogram); 513 &QuotaManager::ReportHistogram);
513 } 514 }
514 515
515 private: 516 private:
516 FilePath profile_path_; 517 FilePath profile_path_;
517 bool is_incognito_; 518 bool is_incognito_;
518 bool need_initialize_origins_; 519 bool need_initialize_origins_;
519 int64 temporary_storage_quota_; 520 int64 temporary_storage_quota_;
520 }; 521 };
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 1567
1567 QuotaManagerProxy::QuotaManagerProxy( 1568 QuotaManagerProxy::QuotaManagerProxy(
1568 QuotaManager* manager, base::MessageLoopProxy* io_thread) 1569 QuotaManager* manager, base::MessageLoopProxy* io_thread)
1569 : manager_(manager), io_thread_(io_thread) { 1570 : manager_(manager), io_thread_(io_thread) {
1570 } 1571 }
1571 1572
1572 QuotaManagerProxy::~QuotaManagerProxy() { 1573 QuotaManagerProxy::~QuotaManagerProxy() {
1573 } 1574 }
1574 1575
1575 } // namespace quota 1576 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/quota/quota_database.cc ('k') | webkit/quota/quota_temporary_storage_evictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698