Index: headless/lib/browser/headless_content_browser_client.cc |
diff --git a/headless/lib/browser/headless_content_browser_client.cc b/headless/lib/browser/headless_content_browser_client.cc |
index b863c60fe58e942385a6e0e3b8eb2b52bc84324d..cf2f4bd58f0b5d9e8c0f32a400214fe8637af501 100644 |
--- a/headless/lib/browser/headless_content_browser_client.cc |
+++ b/headless/lib/browser/headless_content_browser_client.cc |
@@ -13,12 +13,14 @@ |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_view_host.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/common/service_names.h" |
#include "headless/grit/headless_lib_resources.h" |
#include "headless/lib/browser/headless_browser_context_impl.h" |
#include "headless/lib/browser/headless_browser_impl.h" |
#include "headless/lib/browser/headless_browser_main_parts.h" |
#include "headless/lib/browser/headless_devtools_manager_delegate.h" |
+#include "storage/browser/quota/quota_settings.h" |
#include "ui/base/resource/resource_bundle.h" |
namespace headless { |
@@ -64,4 +66,15 @@ HeadlessContentBrowserClient::GetServiceManifestOverlay( |
return base::JSONReader::Read(manifest_contents); |
} |
+void HeadlessContentBrowserClient::GetQuotaSettings( |
+ content::BrowserContext* context, |
+ content::StoragePartition* partition, |
+ const storage::OptionalQuotaSettingsCallback& callback) { |
+ content::BrowserThread::PostTaskAndReplyWithResult( |
+ content::BrowserThread::FILE, FROM_HERE, |
+ base::Bind(&storage::CalculateNominalDynamicSettings, |
+ partition->GetPath(), context->IsOffTheRecord()), |
+ callback); |
+} |
+ |
} // namespace headless |