Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / common / net / url_request_user_data.h
blobc3e464f72f913ab333a4332b1a758b9d56c01d2c
1 // Copyright (c) 2012 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.
5 #ifndef CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
6 #define CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
8 #include "base/supports_user_data.h"
10 namespace content {
12 // Used to annotate all URLRequests for which the request can be associated
13 // with a given render view.
14 class URLRequestUserData : public base::SupportsUserData::Data {
15 public:
16 URLRequestUserData(int render_process_id, int render_view_id);
17 virtual ~URLRequestUserData();
19 int render_process_id() const { return render_process_id_; }
20 int render_view_id() const { return render_view_id_; }
22 static const void* kUserDataKey;
24 private:
25 int render_process_id_;
26 int render_view_id_;
29 } // namespace content
31 #endif // CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_