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

Side by Side Diff: ui/views_content_client/views_content_browser_client.cc

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « ui/views_content_client/views_content_browser_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/views_content_client/views_content_browser_client.h" 5 #include "ui/views_content_client/views_content_browser_client.h"
6 6
7 #include "content/public/browser/browser_context.h"
8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/storage_partition.h"
10 #include "storage/browser/quota/quota_settings.h"
7 #include "ui/views_content_client/views_content_client_main_parts.h" 11 #include "ui/views_content_client/views_content_client_main_parts.h"
8 12
9 namespace ui { 13 namespace ui {
10 14
11 ViewsContentBrowserClient::ViewsContentBrowserClient( 15 ViewsContentBrowserClient::ViewsContentBrowserClient(
12 ViewsContentClient* views_content_client) 16 ViewsContentClient* views_content_client)
13 : views_content_main_parts_(NULL), 17 : views_content_main_parts_(NULL),
14 views_content_client_(views_content_client) { 18 views_content_client_(views_content_client) {
15 } 19 }
16 20
17 ViewsContentBrowserClient::~ViewsContentBrowserClient() { 21 ViewsContentBrowserClient::~ViewsContentBrowserClient() {
18 } 22 }
19 23
20 content::BrowserMainParts* ViewsContentBrowserClient::CreateBrowserMainParts( 24 content::BrowserMainParts* ViewsContentBrowserClient::CreateBrowserMainParts(
21 const content::MainFunctionParams& parameters) { 25 const content::MainFunctionParams& parameters) {
22 views_content_main_parts_ = 26 views_content_main_parts_ =
23 ViewsContentClientMainParts::Create(parameters, views_content_client_); 27 ViewsContentClientMainParts::Create(parameters, views_content_client_);
24 return views_content_main_parts_; 28 return views_content_main_parts_;
25 } 29 }
26 30
31 void ViewsContentBrowserClient::GetQuotaSettings(
32 content::BrowserContext* context,
33 content::StoragePartition* partition,
34 const storage::OptionalQuotaSettingsCallback& callback) {
35 content::BrowserThread::PostTaskAndReplyWithResult(
36 content::BrowserThread::FILE, FROM_HERE,
37 base::Bind(&storage::CalculateNominalDynamicSettings,
38 partition->GetPath(), context->IsOffTheRecord()),
39 callback);
40 }
41
27 } // namespace ui 42 } // namespace ui
OLDNEW
« no previous file with comments | « ui/views_content_client/views_content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698