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