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

Side by Side Diff: content/browser/quota_permission_context.h

Issue 9566035: Move QuotaPermissionContext to content/public/browser and put it in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
6 #define CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
7
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10 #include "webkit/quota/quota_types.h"
11
12 class GURL;
13
14 class QuotaPermissionContext
15 : public base::RefCountedThreadSafe<QuotaPermissionContext> {
16 public:
17 enum Response {
18 kResponseUnknown,
19 kResponseAllow,
20 kResponseDisallow,
21 kResponseCancelled,
22 };
23
24 typedef base::Callback<void(Response)> PermissionCallback;
25
26 virtual void RequestQuotaPermission(
27 const GURL& origin_url,
28 quota::StorageType type,
29 int64 new_quota,
30 int render_process_id,
31 int render_view_id,
32 const PermissionCallback& callback) = 0;
33
34 protected:
35 friend class base::RefCountedThreadSafe<QuotaPermissionContext>;
36 virtual ~QuotaPermissionContext() {}
37 };
38
39 #endif // CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698