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

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 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
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( 285 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
285 WebContents* web_contents) { 286 WebContents* web_contents) {
286 return CreateShellWebContentsViewDelegate(web_contents); 287 return CreateShellWebContentsViewDelegate(web_contents);
287 } 288 }
288 289
289 QuotaPermissionContext* 290 QuotaPermissionContext*
290 ShellContentBrowserClient::CreateQuotaPermissionContext() { 291 ShellContentBrowserClient::CreateQuotaPermissionContext() {
291 return new ShellQuotaPermissionContext(); 292 return new ShellQuotaPermissionContext();
292 } 293 }
293 294
295 void ShellContentBrowserClient::GetQuotaSettings(
296 BrowserContext* context,
297 StoragePartition* partition,
298 const storage::OptionalQuotaSettingsCallback& callback) {
299 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024));
300 }
301
294 void ShellContentBrowserClient::SelectClientCertificate( 302 void ShellContentBrowserClient::SelectClientCertificate(
295 WebContents* web_contents, 303 WebContents* web_contents,
296 net::SSLCertRequestInfo* cert_request_info, 304 net::SSLCertRequestInfo* cert_request_info,
297 std::unique_ptr<ClientCertificateDelegate> delegate) { 305 std::unique_ptr<ClientCertificateDelegate> delegate) {
298 if (!select_client_certificate_callback_.is_null()) 306 if (!select_client_certificate_callback_.is_null())
299 select_client_certificate_callback_.Run(); 307 select_client_certificate_callback_.Run();
300 } 308 }
301 309
302 SpeechRecognitionManagerDelegate* 310 SpeechRecognitionManagerDelegate*
303 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { 311 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 ShellBrowserContext* ShellContentBrowserClient::browser_context() { 380 ShellBrowserContext* ShellContentBrowserClient::browser_context() {
373 return shell_browser_main_parts_->browser_context(); 381 return shell_browser_main_parts_->browser_context();
374 } 382 }
375 383
376 ShellBrowserContext* 384 ShellBrowserContext*
377 ShellContentBrowserClient::off_the_record_browser_context() { 385 ShellContentBrowserClient::off_the_record_browser_context() {
378 return shell_browser_main_parts_->off_the_record_browser_context(); 386 return shell_browser_main_parts_->off_the_record_browser_context();
379 } 387 }
380 388
381 } // namespace content 389 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | content/test/test_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698