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

Unified Diff: content/public/common/quota_types.h

Issue 185793004: [Quota] Pass user gesture state with quota request message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove quota_types.cc Created 6 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
Index: content/public/common/quota_types.h
diff --git a/content/public/common/quota_types.h b/content/public/common/quota_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9a09fc3d1070dc9ddd62bfb8f165cba434cab85
--- /dev/null
+++ b/content/public/common/quota_types.h
@@ -0,0 +1,37 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
jam 2014/03/28 18:03:10 nit: 2014 also note (per content api wiki) that e
Greg Billock 2014/03/28 18:17:45 Will do.
jam 2014/03/31 17:27:27 per http://www.chromium.org/developers/content-mod
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_QUOTA_TYPES_H_
+#define CONTENT_PUBLIC_COMMON_QUOTA_TYPES_H_
+
+#include "content/common/content_export.h"
+#include "ipc/ipc_message.h"
+#include "url/gurl.h"
+#include "webkit/common/quota/quota_types.h"
+
+namespace content {
+
+// Parameters from the renderer to the browser process on a
+// RequestStorageQuota call.
+struct CONTENT_EXPORT RequestStorageQuotaParams {
+ RequestStorageQuotaParams()
+ : render_view_id(MSG_ROUTING_NONE),
+ request_id(-1),
+ storage_type(quota::kStorageTypeTemporary),
+ requested_size(0),
+ user_gesture(false) {}
+
+ int render_view_id;
+ int request_id;
+ GURL origin_url;
+ quota::StorageType storage_type;
+ uint64 requested_size;
+
+ // Request was made in the context of a user gesture.
+ bool user_gesture;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_QUOTA_TYPES_H_
« no previous file with comments | « content/public/browser/quota_permission_context.h ('k') | content/shell/browser/shell_quota_permission_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698