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

Unified Diff: content/shell/shell_quota_permission_context.h

Issue 12965016: [content shell] add QuotaPermissionContext implementation that always grants quota (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/shell/shell_quota_permission_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_quota_permission_context.h
diff --git a/chrome/browser/chrome_quota_permission_context.h b/content/shell/shell_quota_permission_context.h
similarity index 50%
copy from chrome/browser/chrome_quota_permission_context.h
copy to content/shell/shell_quota_permission_context.h
index 895d4af39513fc9c0697d798b2a0a08fe4c0bf14..af7f62fbffe2010c6ec6b34d9163356cd55f61d9 100644
--- a/chrome/browser/chrome_quota_permission_context.h
+++ b/content/shell/shell_quota_permission_context.h
@@ -1,16 +1,18 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 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 CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
-#define CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
+#ifndef CONTENT_SHELL_SHELL_QUOTA_PERMISSION_CONTEXT_H_
+#define CONTENT_SHELL_SHELL_QUOTA_PERMISSION_CONTEXT_H_
#include "base/compiler_specific.h"
#include "content/public/browser/quota_permission_context.h"
-class ChromeQuotaPermissionContext : public content::QuotaPermissionContext {
+namespace content {
+
+class ShellQuotaPermissionContext : public QuotaPermissionContext {
public:
- ChromeQuotaPermissionContext();
+ ShellQuotaPermissionContext();
// The callback will be dispatched on the IO thread.
virtual void RequestQuotaPermission(
@@ -21,12 +23,12 @@ class ChromeQuotaPermissionContext : public content::QuotaPermissionContext {
int render_view_id,
const PermissionCallback& callback) OVERRIDE;
- void DispatchCallbackOnIOThread(
- const PermissionCallback& callback,
- QuotaPermissionResponse response);
-
private:
- virtual ~ChromeQuotaPermissionContext();
+ virtual ~ShellQuotaPermissionContext();
+
+ DISALLOW_COPY_AND_ASSIGN(ShellQuotaPermissionContext);
};
-#endif // CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
+} // namespace content
+
+#endif // CONTENT_SHELL_SHELL_QUOTA_PERMISSION_CONTEXT_H_
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/shell/shell_quota_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698