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

Side by Side Diff: android_webview/browser/aw_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 | « android_webview/browser/aw_content_browser_client.h ('k') | ash/shell/content/client/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_browser_main_parts.h" 10 #include "android_webview/browser/aw_browser_main_parts.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "components/spellcheck/spellcheck_build_features.h" 42 #include "components/spellcheck/spellcheck_build_features.h"
43 #include "content/public/browser/browser_message_filter.h" 43 #include "content/public/browser/browser_message_filter.h"
44 #include "content/public/browser/browser_thread.h" 44 #include "content/public/browser/browser_thread.h"
45 #include "content/public/browser/child_process_security_policy.h" 45 #include "content/public/browser/child_process_security_policy.h"
46 #include "content/public/browser/client_certificate_delegate.h" 46 #include "content/public/browser/client_certificate_delegate.h"
47 #include "content/public/browser/navigation_handle.h" 47 #include "content/public/browser/navigation_handle.h"
48 #include "content/public/browser/navigation_throttle.h" 48 #include "content/public/browser/navigation_throttle.h"
49 #include "content/public/browser/render_frame_host.h" 49 #include "content/public/browser/render_frame_host.h"
50 #include "content/public/browser/render_process_host.h" 50 #include "content/public/browser/render_process_host.h"
51 #include "content/public/browser/render_view_host.h" 51 #include "content/public/browser/render_view_host.h"
52 #include "content/public/browser/storage_partition.h"
52 #include "content/public/browser/web_contents.h" 53 #include "content/public/browser/web_contents.h"
53 #include "content/public/common/content_switches.h" 54 #include "content/public/common/content_switches.h"
54 #include "content/public/common/service_names.mojom.h" 55 #include "content/public/common/service_names.mojom.h"
55 #include "content/public/common/url_constants.h" 56 #include "content/public/common/url_constants.h"
56 #include "content/public/common/web_preferences.h" 57 #include "content/public/common/web_preferences.h"
57 #include "device/geolocation/access_token_store.h" 58 #include "device/geolocation/access_token_store.h"
58 #include "device/geolocation/geolocation_delegate.h" 59 #include "device/geolocation/geolocation_delegate.h"
59 #include "net/android/network_library.h" 60 #include "net/android/network_library.h"
60 #include "net/ssl/ssl_cert_request_info.h" 61 #include "net/ssl/ssl_cert_request_info.h"
61 #include "net/ssl/ssl_info.h" 62 #include "net/ssl/ssl_info.h"
62 #include "services/service_manager/public/cpp/interface_registry.h" 63 #include "services/service_manager/public/cpp/interface_registry.h"
64 #include "storage/browser/quota/quota_settings.h"
63 #include "ui/base/resource/resource_bundle.h" 65 #include "ui/base/resource/resource_bundle.h"
64 #include "ui/base/resource/resource_bundle_android.h" 66 #include "ui/base/resource/resource_bundle_android.h"
65 #include "ui/resources/grit/ui_resources.h" 67 #include "ui/resources/grit/ui_resources.h"
66 68
67 #if BUILDFLAG(ENABLE_SPELLCHECK) 69 #if BUILDFLAG(ENABLE_SPELLCHECK)
68 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" 70 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h"
69 #include "components/spellcheck/common/spellcheck_switches.h" 71 #include "components/spellcheck/common/spellcheck_switches.h"
70 #endif 72 #endif
71 73
72 using content::BrowserThread; 74 using content::BrowserThread;
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 const std::vector<std::pair<int, int> >& render_frames) { 353 const std::vector<std::pair<int, int> >& render_frames) {
352 // Android WebView does not yet support web workers. 354 // Android WebView does not yet support web workers.
353 return false; 355 return false;
354 } 356 }
355 357
356 content::QuotaPermissionContext* 358 content::QuotaPermissionContext*
357 AwContentBrowserClient::CreateQuotaPermissionContext() { 359 AwContentBrowserClient::CreateQuotaPermissionContext() {
358 return new AwQuotaPermissionContext; 360 return new AwQuotaPermissionContext;
359 } 361 }
360 362
363 void AwContentBrowserClient::GetQuotaSettings(
364 content::BrowserContext* context,
365 content::StoragePartition* partition,
366 const storage::OptionalQuotaSettingsCallback& callback) {
367 content::BrowserThread::PostTaskAndReplyWithResult(
368 content::BrowserThread::FILE, FROM_HERE,
369 base::Bind(&storage::CalculateNominalDynamicSettings,
370 partition->GetPath(), context->IsOffTheRecord()),
371 callback);
372 }
373
361 void AwContentBrowserClient::AllowCertificateError( 374 void AwContentBrowserClient::AllowCertificateError(
362 content::WebContents* web_contents, 375 content::WebContents* web_contents,
363 int cert_error, 376 int cert_error,
364 const net::SSLInfo& ssl_info, 377 const net::SSLInfo& ssl_info,
365 const GURL& request_url, 378 const GURL& request_url,
366 ResourceType resource_type, 379 ResourceType resource_type,
367 bool overridable, 380 bool overridable,
368 bool strict_enforcement, 381 bool strict_enforcement,
369 bool expired_previous_decision, 382 bool expired_previous_decision,
370 const base::Callback<void(content::CertificateRequestResultType)>& 383 const base::Callback<void(content::CertificateRequestResultType)>&
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 render_frame_host)); 563 render_frame_host));
551 564
552 // Although WebView does not support password manager feature, renderer code 565 // Although WebView does not support password manager feature, renderer code
553 // could still request this interface, so we register a dummy binder which 566 // could still request this interface, so we register a dummy binder which
554 // just drops the incoming request, to avoid the 'Failed to locate a binder 567 // just drops the incoming request, to avoid the 'Failed to locate a binder
555 // for interface' error log.. 568 // for interface' error log..
556 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); 569 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver));
557 } 570 }
558 571
559 } // namespace android_webview 572 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | ash/shell/content/client/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698