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

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

Issue 185793004: [Quota] Pass user gesture state with quota request message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change name, file Created 6 years, 8 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
« no previous file with comments | « no previous file | android_webview/browser/aw_quota_permission_context.cc » ('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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_QUOTA_PERMISSION_CONTEXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_QUOTA_PERMISSION_CONTEXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_QUOTA_PERMISSION_CONTEXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_QUOTA_PERMISSION_CONTEXT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/public/browser/quota_permission_context.h" 9 #include "content/public/browser/quota_permission_context.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 class AwQuotaPermissionContext : public content::QuotaPermissionContext { 13 class AwQuotaPermissionContext : public content::QuotaPermissionContext {
14 public: 14 public:
15 AwQuotaPermissionContext(); 15 AwQuotaPermissionContext();
16 16
17 virtual void RequestQuotaPermission( 17 virtual void RequestQuotaPermission(
18 const GURL& origin_url, 18 const content::StorageQuotaParams& params,
19 quota::StorageType type,
20 int64 new_quota,
21 int render_process_id, 19 int render_process_id,
22 int render_view_id,
23 const PermissionCallback& callback) OVERRIDE; 20 const PermissionCallback& callback) OVERRIDE;
24 21
25 private: 22 private:
26 virtual ~AwQuotaPermissionContext(); 23 virtual ~AwQuotaPermissionContext();
27 24
28 DISALLOW_COPY_AND_ASSIGN(AwQuotaPermissionContext); 25 DISALLOW_COPY_AND_ASSIGN(AwQuotaPermissionContext);
29 }; 26 };
30 27
31 } // namespace android_webview 28 } // namespace android_webview
32 29
33 #endif // ANDROID_WEBVIEW_BROWSER_AW_QUOTA_PERMISSION_CONTEXT_H_ 30 #endif // ANDROID_WEBVIEW_BROWSER_AW_QUOTA_PERMISSION_CONTEXT_H_
34 31
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_quota_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698