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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 1681703002: Update NavigationHandleImpl#GetResponseHeaders method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@template-url-prototcol
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool new_is_external_protocol) override; 105 bool new_is_external_protocol) override;
106 106
107 NavigatorDelegate* GetDelegate() const; 107 NavigatorDelegate* GetDelegate() const;
108 108
109 // Returns the response headers for the request. This can only be accessed 109 // Returns the response headers for the request. This can only be accessed
110 // after a redirect was encountered or after the the navigation is ready to 110 // after a redirect was encountered or after the the navigation is ready to
111 // commit. It should not be modified, as modifications will not be reflected 111 // commit. It should not be modified, as modifications will not be reflected
112 // in the network stack. 112 // in the network stack.
113 const net::HttpResponseHeaders* GetResponseHeaders(); 113 const net::HttpResponseHeaders* GetResponseHeaders();
114 114
115 // Returns whether response headers are currently available for the request.
116 bool HasResponseHeaders() const;
clamy 2016/02/09 10:42:40 nit: wrong indentation
Donn Denman 2016/02/10 01:05:05 Acknowledged.
117
115 void set_net_error_code(net::Error net_error_code) { 118 void set_net_error_code(net::Error net_error_code) {
116 net_error_code_ = net_error_code; 119 net_error_code_ = net_error_code;
117 } 120 }
118 121
119 // Returns whether the navigation is currently being transferred from one 122 // Returns whether the navigation is currently being transferred from one
120 // RenderFrameHost to another. In particular, a DidStartProvisionalLoad IPC 123 // RenderFrameHost to another. In particular, a DidStartProvisionalLoad IPC
121 // for the navigation URL, received in the new RenderFrameHost, should not 124 // for the navigation URL, received in the new RenderFrameHost, should not
122 // indicate the start of a new navigation in that case. 125 // indicate the start of a new navigation in that case.
123 bool is_transferring() const { return is_transferring_; } 126 bool is_transferring() const { return is_transferring_; }
124 void set_is_transferring(bool is_transferring) { 127 void set_is_transferring(bool is_transferring) {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a 269 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a
267 // corresponding ServiceWorkerNetworkProvider is created in the renderer. 270 // corresponding ServiceWorkerNetworkProvider is created in the renderer.
268 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; 271 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_;
269 272
270 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 273 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
271 }; 274 };
272 275
273 } // namespace content 276 } // namespace content
274 277
275 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 278 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698