| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_REQUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 // NavigationURLLoaderDelegate implementation. | 106 // NavigationURLLoaderDelegate implementation. |
| 107 void OnRequestRedirected( | 107 void OnRequestRedirected( |
| 108 const net::RedirectInfo& redirect_info, | 108 const net::RedirectInfo& redirect_info, |
| 109 const scoped_refptr<ResourceResponse>& response) override; | 109 const scoped_refptr<ResourceResponse>& response) override; |
| 110 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, | 110 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, |
| 111 scoped_ptr<StreamHandle> body) override; | 111 scoped_ptr<StreamHandle> body) override; |
| 112 void OnRequestFailed(int net_error) override; | 112 void OnRequestFailed(int net_error) override; |
| 113 void NavigationRequested(base::TimeTicks timestamp) override; |
| 113 | 114 |
| 114 FrameTreeNode* frame_tree_node_; | 115 FrameTreeNode* frame_tree_node_; |
| 115 | 116 |
| 116 // Initialized on creation of the NavigationRequest. Sent to the renderer when | 117 // Initialized on creation of the NavigationRequest. Sent to the renderer when |
| 117 // the navigation is ready to commit. | 118 // the navigation is ready to commit. |
| 118 // Note: When the navigation is ready to commit, the url in |common_params| | 119 // Note: When the navigation is ready to commit, the url in |common_params| |
| 119 // will be set to the final navigation url, obtained after following all | 120 // will be set to the final navigation url, obtained after following all |
| 120 // redirects. | 121 // redirects. |
| 121 CommonNavigationParams common_params_; | 122 CommonNavigationParams common_params_; |
| 122 const CommitNavigationParams commit_params_; | 123 const CommitNavigationParams commit_params_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 133 NavigationEntryImpl::RestoreType restore_type_; | 134 NavigationEntryImpl::RestoreType restore_type_; |
| 134 bool is_view_source_; | 135 bool is_view_source_; |
| 135 int bindings_; | 136 int bindings_; |
| 136 | 137 |
| 137 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 138 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace content | 141 } // namespace content |
| 141 | 142 |
| 142 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 143 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |