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" |
11 #include "content/browser/frame_host/navigation_entry_impl.h" | 11 #include "content/browser/frame_host/navigation_entry_impl.h" |
12 #include "content/browser/loader/navigation_url_loader_delegate.h" | 12 #include "content/browser/loader/navigation_url_loader_delegate.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/common/frame_message_enums.h" |
14 #include "content/common/navigation_params.h" | 15 #include "content/common/navigation_params.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 class FrameTreeNode; | 19 class FrameTreeNode; |
19 class NavigationURLLoader; | 20 class NavigationURLLoader; |
20 class ResourceRequestBody; | 21 class ResourceRequestBody; |
21 class SiteInstanceImpl; | 22 class SiteInstanceImpl; |
22 struct NavigationRequestInfo; | 23 struct NavigationRequestInfo; |
23 | 24 |
(...skipping 20 matching lines...) Expand all Loading... |
44 | 45 |
45 // The response started on the IO thread and is ready to be committed. This | 46 // The response started on the IO thread and is ready to be committed. This |
46 // is one of the two final states for the request. | 47 // is one of the two final states for the request. |
47 RESPONSE_STARTED, | 48 RESPONSE_STARTED, |
48 | 49 |
49 // The request failed on the IO thread and an error page should be | 50 // The request failed on the IO thread and an error page should be |
50 // displayed. This is one of the two final states for the request. | 51 // displayed. This is one of the two final states for the request. |
51 FAILED, | 52 FAILED, |
52 }; | 53 }; |
53 | 54 |
| 55 static scoped_ptr<NavigationRequest> Create( |
| 56 FrameTreeNode* frame_tree_node, |
| 57 const NavigationEntryImpl& entry, |
| 58 FrameMsg_Navigate_Type::Value navigation_type, |
| 59 base::TimeTicks navigation_start); |
| 60 |
54 NavigationRequest(FrameTreeNode* frame_tree_node, | 61 NavigationRequest(FrameTreeNode* frame_tree_node, |
55 const CommonNavigationParams& common_params, | 62 const CommonNavigationParams& common_params, |
56 const CommitNavigationParams& commit_params, | 63 const CommitNavigationParams& commit_params, |
57 const NavigationEntryImpl* navitation_entry); | 64 const NavigationEntryImpl* navitation_entry); |
58 | 65 |
59 ~NavigationRequest() override; | 66 ~NavigationRequest() override; |
60 | 67 |
61 // Called on the UI thread by the RenderFrameHostManager which owns the | 68 // Called on the UI thread by the RenderFrameHostManager which owns the |
62 // NavigationRequest. Takes ownership of |info|. After calling this function, | 69 // NavigationRequest. Takes ownership of |info|. After calling this function, |
63 // |body| can no longer be manipulated on the UI thread. | 70 // |body| can no longer be manipulated on the UI thread. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 NavigationEntryImpl::RestoreType restore_type_; | 133 NavigationEntryImpl::RestoreType restore_type_; |
127 bool is_view_source_; | 134 bool is_view_source_; |
128 int bindings_; | 135 int bindings_; |
129 | 136 |
130 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 137 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
131 }; | 138 }; |
132 | 139 |
133 } // namespace content | 140 } // namespace content |
134 | 141 |
135 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 142 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |