| 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/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "content/browser/frame_host/navigation_entry_impl.h" | 12 #include "content/browser/frame_host/navigation_entry_impl.h" |
| 13 #include "content/browser/loader/navigation_url_loader_delegate.h" | 13 #include "content/browser/loader/navigation_url_loader_delegate.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/common/frame_message_enums.h" | 15 #include "content/common/frame_message_enums.h" |
| 16 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
| 17 #include "content/public/browser/navigation_throttle.h" | 17 #include "content/public/browser/navigation_throttle.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 class FrameNavigationEntry; | 21 class FrameNavigationEntry; |
| 22 class FrameTreeNode; | 22 class FrameTreeNode; |
| 23 class NavigationControllerImpl; | 23 class NavigationControllerImpl; |
| 24 class NavigationHandleImpl; | 24 class NavigationHandleImpl; |
| 25 class NavigationURLLoader; | 25 class NavigationURLLoader; |
| 26 class NavigationData; | 26 class NavigationData; |
| 27 class NavigatorDelegate; | |
| 28 class ResourceRequestBody; | 27 class ResourceRequestBody; |
| 29 class SiteInstanceImpl; | 28 class SiteInstanceImpl; |
| 30 class StreamHandle; | 29 class StreamHandle; |
| 31 struct NavigationRequestInfo; | |
| 32 | 30 |
| 33 // PlzNavigate | 31 // PlzNavigate |
| 34 // A UI thread object that owns a navigation request until it commits. It | 32 // A UI thread object that owns a navigation request until it commits. It |
| 35 // ensures the UI thread can start a navigation request in the | 33 // ensures the UI thread can start a navigation request in the |
| 36 // ResourceDispatcherHost (that lives on the IO thread). | 34 // ResourceDispatcherHost (that lives on the IO thread). |
| 37 // TODO(clamy): Describe the interactions between the UI and IO thread during | 35 // TODO(clamy): Describe the interactions between the UI and IO thread during |
| 38 // the navigation following its refactoring. | 36 // the navigation following its refactoring. |
| 39 class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate { | 37 class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate { |
| 40 public: | 38 public: |
| 41 // Keeps track of the various stages of a NavigationRequest. | 39 // Keeps track of the various stages of a NavigationRequest. |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // the WillProcessResponse checks are performed by the NavigationHandle. | 228 // the WillProcessResponse checks are performed by the NavigationHandle. |
| 231 scoped_refptr<ResourceResponse> response_; | 229 scoped_refptr<ResourceResponse> response_; |
| 232 std::unique_ptr<StreamHandle> body_; | 230 std::unique_ptr<StreamHandle> body_; |
| 233 | 231 |
| 234 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 232 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 235 }; | 233 }; |
| 236 | 234 |
| 237 } // namespace content | 235 } // namespace content |
| 238 | 236 |
| 239 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 237 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |