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

Side by Side Diff: ash/shell/content/client/shell_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 4 years, 1 month 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
OLDNEW
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 "ash/shell/content/client/shell_content_browser_client.h" 5 #include "ash/shell/content/client/shell_content_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/shell/content/client/shell_browser_main_parts.h" 9 #include "ash/shell/content/client/shell_browser_main_parts.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "content/public/browser/browser_thread.h"
12 #include "storage/browser/quota/quota_settings.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 13 #include "third_party/skia/include/core/SkBitmap.h"
12 14
13 namespace ash { 15 namespace ash {
14 namespace shell { 16 namespace shell {
15 17
16 ShellContentBrowserClient::ShellContentBrowserClient() 18 ShellContentBrowserClient::ShellContentBrowserClient()
17 : shell_browser_main_parts_(nullptr) {} 19 : shell_browser_main_parts_(nullptr) {}
18 20
19 ShellContentBrowserClient::~ShellContentBrowserClient() {} 21 ShellContentBrowserClient::~ShellContentBrowserClient() {}
20 22
21 content::BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts( 23 content::BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts(
22 const content::MainFunctionParams& parameters) { 24 const content::MainFunctionParams& parameters) {
23 shell_browser_main_parts_ = new ShellBrowserMainParts(parameters); 25 shell_browser_main_parts_ = new ShellBrowserMainParts(parameters);
24 return shell_browser_main_parts_; 26 return shell_browser_main_parts_;
25 } 27 }
26 28
29 void ShellContentBrowserClient::GetQuotaSettings(
30 content::BrowserContext* context,
31 const base::FilePath& partition_path,
32 bool is_incognito,
33 const storage::OptionalQuotaSettingsCallback& callback) {
34 content::BrowserThread::PostTaskAndReplyWithResult(
35 content::BrowserThread::FILE, FROM_HERE,
36 base::Bind(&storage::CalculateNominalDynamicSettings, partition_path,
37 is_incognito),
38 callback);
39 }
40
27 } // namespace examples 41 } // namespace examples
28 } // namespace views 42 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698