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

Side by Side Diff: webkit/glue/resource_loader_bridge.h

Issue 9413038: SPDY - chrome:loadtimes() should display negotiated NPN protocol. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // The intent of this file is to provide a type-neutral abstraction between 5 // The intent of this file is to provide a type-neutral abstraction between
6 // Chrome and WebKit for resource loading. This pure-virtual interface is 6 // Chrome and WebKit for resource loading. This pure-virtual interface is
7 // implemented by the embedder. 7 // implemented by the embedder.
8 // 8 //
9 // One of these objects will be created by WebKit for each request. WebKit 9 // One of these objects will be created by WebKit for each request. WebKit
10 // will own the pointer to the bridge, and will delete it when the request is 10 // will own the pointer to the bridge, and will delete it when the request is
11 // no longer needed. 11 // no longer needed.
(...skipping 14 matching lines...) Expand all
26 #include "base/file_path.h" 26 #include "base/file_path.h"
27 #include "base/memory/ref_counted.h" 27 #include "base/memory/ref_counted.h"
28 #include "base/memory/scoped_ptr.h" 28 #include "base/memory/scoped_ptr.h"
29 #include "base/platform_file.h" 29 #include "base/platform_file.h"
30 #include "base/time.h" 30 #include "base/time.h"
31 #include "base/values.h" 31 #include "base/values.h"
32 #include "googleurl/src/gurl.h" 32 #include "googleurl/src/gurl.h"
33 #include "net/base/host_port_pair.h" 33 #include "net/base/host_port_pair.h"
34 #include "net/url_request/url_request_status.h" 34 #include "net/url_request/url_request_status.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon se.h"
Ryan Sleevi 2012/02/17 05:37:08 Is this still necessary?
ramant (doing other things) 2012/02/17 21:47:35 Done.
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h"
37 #include "webkit/glue/resource_type.h" 38 #include "webkit/glue/resource_type.h"
38 #include "webkit/glue/webkit_glue_export.h" 39 #include "webkit/glue/webkit_glue_export.h"
39 40
40 namespace net { 41 namespace net {
41 class HttpResponseHeaders; 42 class HttpResponseHeaders;
42 } 43 }
43 44
44 namespace webkit_glue { 45 namespace webkit_glue {
45 46
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 189
189 // True if response could use alternate protocol. However, browser will 190 // True if response could use alternate protocol. However, browser will
190 // ignore the alternate protocol when spdy is not enabled on browser side. 191 // ignore the alternate protocol when spdy is not enabled on browser side.
191 bool was_alternate_protocol_available; 192 bool was_alternate_protocol_available;
192 193
193 // True if the response was fetched via an explicit proxy (as opposed to a 194 // True if the response was fetched via an explicit proxy (as opposed to a
194 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. 195 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS.
195 // Note: we cannot tell if a transparent proxy may have been involved. 196 // Note: we cannot tell if a transparent proxy may have been involved.
196 bool was_fetched_via_proxy; 197 bool was_fetched_via_proxy;
197 198
199 // NPN protocol negotiated with the server.
200 std::string npn_negotiated_protocol;
201
198 // Remote address of the socket which fetched this resource. 202 // Remote address of the socket which fetched this resource.
199 net::HostPortPair socket_address; 203 net::HostPortPair socket_address;
200 }; 204 };
201 205
202 class ResourceLoaderBridge { 206 class ResourceLoaderBridge {
203 public: 207 public:
204 // Structure used when calling 208 // Structure used when calling
205 // WebKitPlatformSupportImpl::CreateResourceLoader(). 209 // WebKitPlatformSupportImpl::CreateResourceLoader().
206 struct WEBKIT_GLUE_EXPORT RequestInfo { 210 struct WEBKIT_GLUE_EXPORT RequestInfo {
207 RequestInfo(); 211 RequestInfo();
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // methods may be called to construct the body of the request. 407 // methods may be called to construct the body of the request.
404 WEBKIT_GLUE_EXPORT ResourceLoaderBridge(); 408 WEBKIT_GLUE_EXPORT ResourceLoaderBridge();
405 409
406 private: 410 private:
407 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); 411 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge);
408 }; 412 };
409 413
410 } // namespace webkit_glue 414 } // namespace webkit_glue
411 415
412 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ 416 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698