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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | |
14 #include "content/browser/frame_host/navigation_entry_impl.h" | 13 #include "content/browser/frame_host/navigation_entry_impl.h" |
15 #include "content/browser/loader/navigation_url_loader_delegate.h" | 14 #include "content/browser/loader/navigation_url_loader_delegate.h" |
16 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
17 #include "content/common/frame_message_enums.h" | 16 #include "content/common/frame_message_enums.h" |
18 #include "content/common/navigation_params.h" | 17 #include "content/common/navigation_params.h" |
19 #include "content/public/browser/navigation_throttle.h" | 18 #include "content/public/browser/navigation_throttle.h" |
20 #include "content/public/common/previews_state.h" | 19 #include "content/public/common/previews_state.h" |
21 | 20 |
22 namespace content { | 21 namespace content { |
23 | 22 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 248 |
250 std::unique_ptr<NavigationHandleImpl> navigation_handle_; | 249 std::unique_ptr<NavigationHandleImpl> navigation_handle_; |
251 | 250 |
252 // Holds the ResourceResponse and the StreamHandle for the navigation while | 251 // Holds the ResourceResponse and the StreamHandle for the navigation while |
253 // the WillProcessResponse checks are performed by the NavigationHandle. | 252 // the WillProcessResponse checks are performed by the NavigationHandle. |
254 scoped_refptr<ResourceResponse> response_; | 253 scoped_refptr<ResourceResponse> response_; |
255 std::unique_ptr<StreamHandle> body_; | 254 std::unique_ptr<StreamHandle> body_; |
256 | 255 |
257 base::Closure on_start_checks_complete_closure_; | 256 base::Closure on_start_checks_complete_closure_; |
258 | 257 |
259 base::WeakPtrFactory<NavigationRequest> weak_factory_; | |
260 | |
261 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 258 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
262 }; | 259 }; |
263 | 260 |
264 } // namespace content | 261 } // namespace content |
265 | 262 |
266 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 263 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |