Chromium Code Reviews| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 | 128 |
| 129 bool is_view_source() const { return is_view_source_; }; | 129 bool is_view_source() const { return is_view_source_; }; |
| 130 | 130 |
| 131 int bindings() const { return bindings_; }; | 131 int bindings() const { return bindings_; }; |
| 132 | 132 |
| 133 bool browser_initiated() const { return browser_initiated_ ; } | 133 bool browser_initiated() const { return browser_initiated_ ; } |
| 134 | 134 |
| 135 bool may_transfer() const { return may_transfer_; } | 135 bool may_transfer() const { return may_transfer_; } |
| 136 | 136 |
| 137 void SetWaitingForRendererResponse() { | 137 void SetWaitingForRendererResponse() { |
| 138 TRACE_EVENT_ASYNC_STEP_INTO0("navigation", "NavigationRequest", this, | |
| 139 "WaitingForRendererResponse"); | |
| 138 DCHECK(state_ == NOT_STARTED); | 140 DCHECK(state_ == NOT_STARTED); |
| 139 state_ = WAITING_FOR_RENDERER_RESPONSE; | 141 state_ = WAITING_FOR_RENDERER_RESPONSE; |
|
Charlie Reis
2017/04/28 00:30:52
Minor nit: This implementation probably belongs in
nasko
2017/04/28 14:01:53
Done.
| |
| 140 } | 142 } |
| 141 | 143 |
| 142 AssociatedSiteInstanceType associated_site_instance_type() const { | 144 AssociatedSiteInstanceType associated_site_instance_type() const { |
| 143 return associated_site_instance_type_; | 145 return associated_site_instance_type_; |
| 144 } | 146 } |
| 145 void set_associated_site_instance_type(AssociatedSiteInstanceType type) { | 147 void set_associated_site_instance_type(AssociatedSiteInstanceType type) { |
| 146 associated_site_instance_type_ = type; | 148 associated_site_instance_type_ = type; |
| 147 } | 149 } |
| 148 | 150 |
| 149 NavigationHandleImpl* navigation_handle() const { | 151 NavigationHandleImpl* navigation_handle() const { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 258 mojo::ScopedDataPipeConsumerHandle handle_; | 260 mojo::ScopedDataPipeConsumerHandle handle_; |
| 259 | 261 |
| 260 base::Closure on_start_checks_complete_closure_; | 262 base::Closure on_start_checks_complete_closure_; |
| 261 | 263 |
| 262 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 264 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 263 }; | 265 }; |
| 264 | 266 |
| 265 } // namespace content | 267 } // namespace content |
| 266 | 268 |
| 267 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 269 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |