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

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

Issue 2592793002: Revert of Change how the quota system computes the total poolsize for temporary storage (Closed)
Patch Set: Created 3 years, 12 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"
11 #include "ui/views_content_client/views_content_client_main_parts.h" 7 #include "ui/views_content_client/views_content_client_main_parts.h"
12 8
13 namespace ui { 9 namespace ui {
14 10
15 ViewsContentBrowserClient::ViewsContentBrowserClient( 11 ViewsContentBrowserClient::ViewsContentBrowserClient(
16 ViewsContentClient* views_content_client) 12 ViewsContentClient* views_content_client)
17 : views_content_main_parts_(NULL), 13 : views_content_main_parts_(NULL),
18 views_content_client_(views_content_client) { 14 views_content_client_(views_content_client) {
19 } 15 }
20 16
21 ViewsContentBrowserClient::~ViewsContentBrowserClient() { 17 ViewsContentBrowserClient::~ViewsContentBrowserClient() {
22 } 18 }
23 19
24 content::BrowserMainParts* ViewsContentBrowserClient::CreateBrowserMainParts( 20 content::BrowserMainParts* ViewsContentBrowserClient::CreateBrowserMainParts(
25 const content::MainFunctionParams& parameters) { 21 const content::MainFunctionParams& parameters) {
26 views_content_main_parts_ = 22 views_content_main_parts_ =
27 ViewsContentClientMainParts::Create(parameters, views_content_client_); 23 ViewsContentClientMainParts::Create(parameters, views_content_client_);
28 return views_content_main_parts_; 24 return views_content_main_parts_;
29 } 25 }
30 26
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
42 } // namespace ui 27 } // 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