Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / common / resource_devtools_info.h
blobbf17b1b6a82546a6d9d83189e1e5c422dd5db650
1 // Copyright 2014 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_PUBLIC_COMMON_RESOURCE_DEVTOOLS_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_DEVTOOLS_INFO_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h"
13 #include "base/strings/string_split.h"
14 #include "content/common/content_export.h"
16 namespace content {
18 // Note: when modifying this structure, also update DeepCopy in
19 // resource_devtools_info.cc.
20 struct ResourceDevToolsInfo : base::RefCounted<ResourceDevToolsInfo> {
21 typedef base::StringPairs HeadersVector;
23 CONTENT_EXPORT ResourceDevToolsInfo();
25 scoped_refptr<ResourceDevToolsInfo> DeepCopy() const;
27 int32 http_status_code;
28 std::string http_status_text;
29 HeadersVector request_headers;
30 HeadersVector response_headers;
31 std::string request_headers_text;
32 std::string response_headers_text;
34 private:
35 friend class base::RefCounted<ResourceDevToolsInfo>;
36 CONTENT_EXPORT ~ResourceDevToolsInfo();
39 } // namespace content
41 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_DEVTOOLS_INFO_H_