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

Side by Side Diff: content/shell/browser/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shell/browser/shell_content_browser_client.h" 5 #include "content/shell/browser/shell_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/shell/browser/shell_browser_main_parts.h" 32 #include "content/shell/browser/shell_browser_main_parts.h"
33 #include "content/shell/browser/shell_devtools_manager_delegate.h" 33 #include "content/shell/browser/shell_devtools_manager_delegate.h"
34 #include "content/shell/browser/shell_net_log.h" 34 #include "content/shell/browser/shell_net_log.h"
35 #include "content/shell/browser/shell_quota_permission_context.h" 35 #include "content/shell/browser/shell_quota_permission_context.h"
36 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" 36 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h"
37 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" 37 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h"
38 #include "content/shell/common/shell_messages.h" 38 #include "content/shell/common/shell_messages.h"
39 #include "content/shell/common/shell_switches.h" 39 #include "content/shell/common/shell_switches.h"
40 #include "grit/shell_resources.h" 40 #include "grit/shell_resources.h"
41 #include "net/url_request/url_request_context_getter.h" 41 #include "net/url_request/url_request_context_getter.h"
42 #include "storage/browser/quota/quota_settings.h"
42 #include "ui/base/resource/resource_bundle.h" 43 #include "ui/base/resource/resource_bundle.h"
43 #include "url/gurl.h" 44 #include "url/gurl.h"
44 #include "url/origin.h" 45 #include "url/origin.h"
45 46
46 #if defined(OS_ANDROID) 47 #if defined(OS_ANDROID)
47 #include "base/android/apk_assets.h" 48 #include "base/android/apk_assets.h"
48 #include "base/android/path_utils.h" 49 #include "base/android/path_utils.h"
49 #include "components/crash/content/browser/crash_dump_manager_android.h" 50 #include "components/crash/content/browser/crash_dump_manager_android.h"
50 #include "content/shell/android/shell_descriptors.h" 51 #include "content/shell/android/shell_descriptors.h"
51 #endif 52 #endif
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( 270 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
270 WebContents* web_contents) { 271 WebContents* web_contents) {
271 return CreateShellWebContentsViewDelegate(web_contents); 272 return CreateShellWebContentsViewDelegate(web_contents);
272 } 273 }
273 274
274 QuotaPermissionContext* 275 QuotaPermissionContext*
275 ShellContentBrowserClient::CreateQuotaPermissionContext() { 276 ShellContentBrowserClient::CreateQuotaPermissionContext() {
276 return new ShellQuotaPermissionContext(); 277 return new ShellQuotaPermissionContext();
277 } 278 }
278 279
280 void ShellContentBrowserClient::GetQuotaSettings(
281 BrowserContext* context,
282 const base::FilePath& partition_path,
283 bool is_incognito,
284 const storage::OptionalQuotaSettingsCallback& callback) {
285 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024));
286 }
287
279 void ShellContentBrowserClient::SelectClientCertificate( 288 void ShellContentBrowserClient::SelectClientCertificate(
280 WebContents* web_contents, 289 WebContents* web_contents,
281 net::SSLCertRequestInfo* cert_request_info, 290 net::SSLCertRequestInfo* cert_request_info,
282 std::unique_ptr<ClientCertificateDelegate> delegate) { 291 std::unique_ptr<ClientCertificateDelegate> delegate) {
283 if (!select_client_certificate_callback_.is_null()) 292 if (!select_client_certificate_callback_.is_null())
284 select_client_certificate_callback_.Run(); 293 select_client_certificate_callback_.Run();
285 } 294 }
286 295
287 SpeechRecognitionManagerDelegate* 296 SpeechRecognitionManagerDelegate*
288 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { 297 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 ShellBrowserContext* ShellContentBrowserClient::browser_context() { 381 ShellBrowserContext* ShellContentBrowserClient::browser_context() {
373 return shell_browser_main_parts_->browser_context(); 382 return shell_browser_main_parts_->browser_context();
374 } 383 }
375 384
376 ShellBrowserContext* 385 ShellBrowserContext*
377 ShellContentBrowserClient::off_the_record_browser_context() { 386 ShellContentBrowserClient::off_the_record_browser_context() {
378 return shell_browser_main_parts_->off_the_record_browser_context(); 387 return shell_browser_main_parts_->off_the_record_browser_context();
379 } 388 }
380 389
381 } // namespace content 390 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698