OLD | NEW |
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 "content/test/test_content_browser_client.h" | 5 #include "content/test/test_content_browser_client.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "storage/browser/quota/quota_settings.h" |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 TestContentBrowserClient::TestContentBrowserClient() { | 13 TestContentBrowserClient::TestContentBrowserClient() { |
13 } | 14 } |
14 | 15 |
15 TestContentBrowserClient::~TestContentBrowserClient() { | 16 TestContentBrowserClient::~TestContentBrowserClient() { |
16 } | 17 } |
17 | 18 |
18 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { | 19 base::FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { |
19 if (!download_dir_.IsValid()) { | 20 if (!download_dir_.IsValid()) { |
20 bool result = download_dir_.CreateUniqueTempDir(); | 21 bool result = download_dir_.CreateUniqueTempDir(); |
21 CHECK(result); | 22 CHECK(result); |
22 } | 23 } |
23 return download_dir_.GetPath(); | 24 return download_dir_.GetPath(); |
24 } | 25 } |
25 | 26 |
| 27 void TestContentBrowserClient::GetQuotaSettings( |
| 28 BrowserContext* context, |
| 29 const base::FilePath& partition_path, |
| 30 bool is_incognito, |
| 31 const storage::OptionalQuotaSettingsCallback& callback) { |
| 32 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024)); |
| 33 } |
| 34 |
26 } // namespace content | 35 } // namespace content |
OLD | NEW |