OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 #include "base/memory/ref_counted.h" |
| 11 |
| 12 namespace content { |
| 13 struct NavigationRequestInfo; |
| 14 class ResourceRequestBody; |
| 15 |
| 16 // A UI thread object that owns a navigation request until it commits. It |
| 17 // ensures the UI thread can start a navigation request in the |
| 18 // ResourceDispatcherHost (that lives on the IO thread). For a more precise |
| 19 // description of the intended interactions between UI and IO thread during |
| 20 // navigation, please see the PlzNavigate design doc. |
| 21 class NavigationRequest { |
| 22 public: |
| 23 explicit NavigationRequest(); |
| 24 ~NavigationRequest(); |
| 25 |
| 26 // Called on the UI thread by the RenderFrameHostManager that owns the |
| 27 // NavigationRequest. |
| 28 void BeginNavigation(const NavigationRequestInfo& info, |
| 29 scoped_refptr<ResourceRequestBody> body, |
| 30 int64 frame_node_id); |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |