OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |