1c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
2c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch// Use of this source code is governed by a BSD-style license that can be
3c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch// found in the LICENSE file.
4c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
5c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#ifndef CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_
6c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#define CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_
7c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
8c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#include "content/common/content_export.h"
9c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#include "ipc/ipc_message.h"
101320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#include "storage/common/quota/quota_types.h"
11c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#include "url/gurl.h"
12c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
13c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochnamespace content {
14c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
15c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch// Parameters from the renderer to the browser process on a
16c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch// RequestStorageQuota call.
17c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochstruct CONTENT_EXPORT StorageQuotaParams {
18c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch  StorageQuotaParams()
19c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch      : render_view_id(MSG_ROUTING_NONE),
20c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch        request_id(-1),
2103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)        storage_type(storage::kStorageTypeTemporary),
22c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch        requested_size(0),
23c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch        user_gesture(false) {}
24c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
25c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch  int render_view_id;
26c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch  int request_id;
27c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch  GURL origin_url;
2803b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)  storage::StorageType storage_type;
29c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch  uint64 requested_size;
30c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
31c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch  // Request was made in the context of a user gesture.
32c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch  bool user_gesture;
33c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch};
34c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
35c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch}  // namespace content
36c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
37c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#endif  // CONTENT_PUBLIC_COMMON_STORAGE_QUOTA_PARAMS_H_
38