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_COMMON_NAVIGATION_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/frame_message_enums.h" | 13 #include "content/common/frame_message_enums.h" |
14 #include "content/public/common/page_state.h" | 14 #include "content/public/common/page_state.h" |
15 #include "content/public/common/referrer.h" | 15 #include "content/public/common/referrer.h" |
16 #include "ui/base/page_transition_types.h" | 16 #include "ui/base/page_transition_types.h" |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class RefCountedMemory; | 20 class RefCountedMemory; |
21 } | 21 } |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 // This is not used outside of the PlzNavigate project. | |
carlosk
2015/07/03 15:39:03
nit: This is generally indicated by having:
// Plz
Fabrice (no longer in Chrome)
2015/07/06 12:45:09
Done.
| |
26 // Helper function to determine if the navigation request to |url| should be | |
clamy
2015/07/03 15:02:23
nit: s/navigation request/navigation
nit: s/should
Fabrice (no longer in Chrome)
2015/07/06 12:45:09
Done.
| |
27 // sent to the network stack. It will not be sent for data URLs or JavaScript | |
28 // URLs, cases where no network request needs to be made. | |
29 bool ShouldMakeNetworkRequestForURL(const GURL& url); | |
nasko
2015/07/06 11:06:16
When this method is used on the renderer side, it
Fabrice (no longer in Chrome)
2015/07/06 12:45:09
Keeping the same name, per our offline chat. I cla
| |
30 | |
25 // The following structures hold parameters used during a navigation. In | 31 // The following structures hold parameters used during a navigation. In |
26 // particular they are used by FrameMsg_Navigate, FrameMsg_CommitNavigation and | 32 // particular they are used by FrameMsg_Navigate, FrameMsg_CommitNavigation and |
27 // FrameHostMsg_BeginNavigation. | 33 // FrameHostMsg_BeginNavigation. |
28 | 34 |
29 // Provided by the browser or the renderer ------------------------------------- | 35 // Provided by the browser or the renderer ------------------------------------- |
30 | 36 |
31 // Used by all navigation IPCs. | 37 // Used by all navigation IPCs. |
32 struct CONTENT_EXPORT CommonNavigationParams { | 38 struct CONTENT_EXPORT CommonNavigationParams { |
33 CommonNavigationParams(); | 39 CommonNavigationParams(); |
34 CommonNavigationParams(const GURL& url, | 40 CommonNavigationParams(const GURL& url, |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
253 ~NavigationParams(); | 259 ~NavigationParams(); |
254 | 260 |
255 CommonNavigationParams common_params; | 261 CommonNavigationParams common_params; |
256 StartNavigationParams start_params; | 262 StartNavigationParams start_params; |
257 RequestNavigationParams request_params; | 263 RequestNavigationParams request_params; |
258 }; | 264 }; |
259 | 265 |
260 } // namespace content | 266 } // namespace content |
261 | 267 |
262 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 268 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |