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

Side by Side Diff: android_webview/browser/aw_quota_permission_context.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 | Annotate | Revision Log
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_quota_permission_context.h" 5 #include "android_webview/browser/aw_quota_permission_context.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 using content::QuotaPermissionContext; 9 using content::QuotaPermissionContext;
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 AwQuotaPermissionContext::AwQuotaPermissionContext() { 13 AwQuotaPermissionContext::AwQuotaPermissionContext() {
14 } 14 }
15 15
16 AwQuotaPermissionContext::~AwQuotaPermissionContext() { 16 AwQuotaPermissionContext::~AwQuotaPermissionContext() {
17 } 17 }
18 18
19 void AwQuotaPermissionContext::RequestQuotaPermission( 19 void AwQuotaPermissionContext::RequestQuotaPermission(
20 const content::StorageQuotaParams& params, 20 const content::StorageQuotaParams& params,
21 int render_process_id, 21 int render_process_id,
22 const PermissionCallback& callback) { 22 const PermissionCallback& callback) {
23 // Android WebView only uses quota::kStorageTypeTemporary type of storage 23 // Android WebView only uses storage::kStorageTypeTemporary type of storage
24 // with quota managed automatically, not through this interface. Therefore 24 // with quota managed automatically, not through this interface. Therefore
25 // unconditionally disallow all quota requests here. 25 // unconditionally disallow all quota requests here.
26 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW); 26 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW);
27 } 27 }
28 28
29 } // namespace android_webview 29 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/native/aw_quota_manager_bridge_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698