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

Unified Diff: content/public/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: fix Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/quota_permission_context.h
diff --git a/content/browser/quota_permission_context.h b/content/public/browser/quota_permission_context.h
similarity index 54%
rename from content/browser/quota_permission_context.h
rename to content/public/browser/quota_permission_context.h
index ab441d43f85a6e5c91b367a1ed6c5ed8d1674256..af3c54a75bcdee9135d539224ba213ea1be51c07 100644
--- a/content/browser/quota_permission_context.h
+++ b/content/public/browser/quota_permission_context.h
@@ -1,9 +1,10 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
-#define CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
+#ifndef CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
+#define CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
+#pragma once
#include "base/callback.h"
#include "base/memory/ref_counted.h"
@@ -11,17 +12,19 @@
class GURL;
+namespace content {
+
class QuotaPermissionContext
: public base::RefCountedThreadSafe<QuotaPermissionContext> {
public:
- enum Response {
- kResponseUnknown,
- kResponseAllow,
- kResponseDisallow,
- kResponseCancelled,
+ enum QuotaPermissionResponse {
+ QUOTA_PERMISSION_RESPONSE_UNKNOWN,
+ QUOTA_PERMISSION_RESPONSE_ALLOW,
+ QUOTA_PERMISSION_RESPONSE_DISALLOW,
+ QUOTA_PERMISSION_RESPONSE_CANCELLED,
};
- typedef base::Callback<void(Response)> PermissionCallback;
+ typedef base::Callback<void(QuotaPermissionResponse)> PermissionCallback;
virtual void RequestQuotaPermission(
const GURL& origin_url,
@@ -36,4 +39,6 @@ class QuotaPermissionContext
virtual ~QuotaPermissionContext() {}
};
-#endif // CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698