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

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: Updated a comment. 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ui::PageTransition transition, 99 ui::PageTransition transition,
100 bool is_external_protocol) override; 100 bool is_external_protocol) override;
101 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting( 101 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting(
102 const GURL& new_url, 102 const GURL& new_url,
103 bool new_method_is_post, 103 bool new_method_is_post,
104 const GURL& new_referrer_url, 104 const GURL& new_referrer_url,
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 or nullptr if there are none.
110 // after a redirect was encountered or after the the navigation is ready to 110 // This should only be accessed after a redirect was encountered or after the
111 // commit. It should not be modified, as modifications will not be reflected 111 // navigation is ready to commit. The headers returned should not be modified,
112 // in the network stack. 112 // as modifications will not be reflected in the network stack.
113 const net::HttpResponseHeaders* GetResponseHeaders(); 113 const net::HttpResponseHeaders* GetResponseHeaders();
114 114
115 void set_net_error_code(net::Error net_error_code) { 115 void set_net_error_code(net::Error net_error_code) {
116 net_error_code_ = net_error_code; 116 net_error_code_ = net_error_code;
117 } 117 }
118 118
119 // Returns whether the navigation is currently being transferred from one 119 // Returns whether the navigation is currently being transferred from one
120 // RenderFrameHost to another. In particular, a DidStartProvisionalLoad IPC 120 // RenderFrameHost to another. In particular, a DidStartProvisionalLoad IPC
121 // for the navigation URL, received in the new RenderFrameHost, should not 121 // for the navigation URL, received in the new RenderFrameHost, should not
122 // indicate the start of a new navigation in that case. 122 // indicate the start of a new navigation in that case.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a 266 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a
267 // corresponding ServiceWorkerNetworkProvider is created in the renderer. 267 // corresponding ServiceWorkerNetworkProvider is created in the renderer.
268 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; 268 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_;
269 269
270 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 270 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
271 }; 271 };
272 272
273 } // namespace content 273 } // namespace content
274 274
275 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 275 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698