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

Unified Diff: webkit/common/resource_response_info.h

Issue 16831010: Move some classes out of webkit/glue/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move UploadDataStreamBuilder to content/browser Created 7 years, 6 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 | « webkit/common/resource_request_body.cc ('k') | webkit/common/resource_response_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/resource_response_info.h
diff --git a/webkit/common/resource_response_info.h b/webkit/common/resource_response_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..074f9018cbe6ad296ec39f82910f1438a0d66a3e
--- /dev/null
+++ b/webkit/common/resource_response_info.h
@@ -0,0 +1,103 @@
+// 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 WEBKIT_COMMON_RESOURCE_RESPONSE_INFO_H_
+#define WEBKIT_COMMON_RESOURCE_RESPONSE_INFO_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/files/file_path.h"
+#include "base/memory/ref_counted.h"
+#include "base/time.h"
+#include "googleurl/src/gurl.h"
+#include "net/base/host_port_pair.h"
+#include "net/base/load_timing_info.h"
+#include "net/http/http_response_info.h"
+#include "webkit/common/resource_devtools_info.h"
+
+namespace webkit_glue {
+
+struct ResourceResponseInfo {
+ WEBKIT_COMMON_EXPORT ResourceResponseInfo();
+ WEBKIT_COMMON_EXPORT ~ResourceResponseInfo();
+
+ // The time at which the request was made that resulted in this response.
+ // For cached responses, this time could be "far" in the past.
+ base::Time request_time;
+
+ // The time at which the response headers were received. For cached
+ // responses, this time could be "far" in the past.
+ base::Time response_time;
+
+ // The response headers or NULL if the URL type does not support headers.
+ scoped_refptr<net::HttpResponseHeaders> headers;
+
+ // The mime type of the response. This may be a derived value.
+ std::string mime_type;
+
+ // The character encoding of the response or none if not applicable to the
+ // response's mime type. This may be a derived value.
+ std::string charset;
+
+ // An opaque string carrying security information pertaining to this
+ // response. This may include information about the SSL connection used.
+ std::string security_info;
+
+ // Content length if available. -1 if not available
+ int64 content_length;
+
+ // Length of the encoded data transferred over the network. In case there is
+ // no data, contains -1.
+ int64 encoded_data_length;
+
+ // The appcache this response was loaded from, or kNoCacheId.
+ int64 appcache_id;
+
+ // The manifest url of the appcache this response was loaded from.
+ // Note: this value is only populated for main resource requests.
+ GURL appcache_manifest_url;
+
+ // Detailed timing information used by the WebTiming, HAR and Developer
+ // Tools. Includes socket ID and socket reuse information.
+ net::LoadTimingInfo load_timing;
+
+ // Actual request and response headers, as obtained from the network stack.
+ // Only present if request had LOAD_REPORT_RAW_HEADERS in load_flags, and
+ // requesting renderer had CanReadRowCookies permission.
+ scoped_refptr<ResourceDevToolsInfo> devtools_info;
+
+ // The path to a file that will contain the response body. It may only
+ // contain a portion of the response body at the time that the ResponseInfo
+ // becomes available.
+ base::FilePath download_file_path;
+
+ // True if the response was delivered using SPDY.
+ bool was_fetched_via_spdy;
+
+ // True if the response was delivered after NPN is negotiated.
+ bool was_npn_negotiated;
+
+ // True if response could use alternate protocol. However, browser will
+ // ignore the alternate protocol when spdy is not enabled on browser side.
+ bool was_alternate_protocol_available;
+
+ // Information about the type of connection used to fetch this response.
+ net::HttpResponseInfo::ConnectionInfo connection_info;
+
+ // True if the response was fetched via an explicit proxy (as opposed to a
+ // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS.
+ // Note: we cannot tell if a transparent proxy may have been involved.
+ bool was_fetched_via_proxy;
+
+ // NPN protocol negotiated with the server.
+ std::string npn_negotiated_protocol;
+
+ // Remote address of the socket which fetched this resource.
+ net::HostPortPair socket_address;
+};
+
+} // namespace webkit_glue
+
+#endif // WEBKIT_COMMON_RESOURCE_RESPONSE_INFO_H_
« no previous file with comments | « webkit/common/resource_request_body.cc ('k') | webkit/common/resource_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698