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

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

Issue 7825026: Revert "Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, (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(FROM_HERE, 510 manager()->histogram_timer_.Start(QuotaManager::kReportHistogramInterval,
511 QuotaManager::kReportHistogramInterval,
512 manager(), 511 manager(),
513 &QuotaManager::ReportHistogram); 512 &QuotaManager::ReportHistogram);
514 } 513 }
515 514
516 private: 515 private:
517 FilePath profile_path_; 516 FilePath profile_path_;
518 bool is_incognito_; 517 bool is_incognito_;
519 bool need_initialize_origins_; 518 bool need_initialize_origins_;
520 int64 temporary_storage_quota_; 519 int64 temporary_storage_quota_;
521 }; 520 };
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 1566
1568 QuotaManagerProxy::QuotaManagerProxy( 1567 QuotaManagerProxy::QuotaManagerProxy(
1569 QuotaManager* manager, base::MessageLoopProxy* io_thread) 1568 QuotaManager* manager, base::MessageLoopProxy* io_thread)
1570 : manager_(manager), io_thread_(io_thread) { 1569 : manager_(manager), io_thread_(io_thread) {
1571 } 1570 }
1572 1571
1573 QuotaManagerProxy::~QuotaManagerProxy() { 1572 QuotaManagerProxy::~QuotaManagerProxy() {
1574 } 1573 }
1575 1574
1576 } // namespace quota 1575 } // 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