OLD | NEW |
---|---|
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 GURL& origin_url, | 20 const GURL& origin_url, |
21 quota::StorageType type, | 21 quota::StorageType type, |
22 int64 new_quota, | 22 int64 new_quota, |
23 int render_process_id, | 23 int render_process_id, |
24 int render_view_id, | 24 int render_view_id, |
25 const PermissionCallback& callback) { | 25 const PermissionCallback& callback) { |
26 if (type != quota::kStorageTypePersistent) { | 26 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW); |
boliu
2013/02/16 03:55:15
This path is only used for PERSISTENT storage, so
mkosiba (inactive)
2013/02/19 11:37:13
maybe add a comment later on with that justificati
boliu
2013/02/20 00:53:50
Done.
| |
27 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW); | |
28 } else { | |
29 // TODO(boliu): Implement this to power | |
30 // WebChromeClient.onExceededDatabaseQuota | |
31 NOTIMPLEMENTED(); | |
32 callback.Run(QUOTA_PERMISSION_RESPONSE_CANCELLED); | |
33 } | |
34 } | 27 } |
35 | 28 |
36 } // namespace android_webview | 29 } // namespace android_webview |
OLD | NEW |