| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 LOFI_OFF, | 32 LOFI_OFF, |
| 33 | 33 |
| 34 // Request a Lo-Fi version of the resource. | 34 // Request a Lo-Fi version of the resource. |
| 35 LOFI_ON, | 35 LOFI_ON, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // PlzNavigate | 38 // PlzNavigate |
| 39 // Helper function to determine if the navigation to |url| should make a request | 39 // Helper function to determine if the navigation to |url| should make a request |
| 40 // to the network stack. A request should not be sent for data URLs, JavaScript | 40 // to the network stack. A request should not be sent for data URLs, JavaScript |
| 41 // URLs or about:blank. In these cases, no request needs to be sent. | 41 // URLs or about:blank. In these cases, no request needs to be sent. |
| 42 bool ShouldMakeNetworkRequestForURL(const GURL& url); | 42 bool CONTENT_EXPORT ShouldMakeNetworkRequestForURL(const GURL& url); |
| 43 | 43 |
| 44 // The following structures hold parameters used during a navigation. In | 44 // The following structures hold parameters used during a navigation. In |
| 45 // particular they are used by FrameMsg_Navigate, FrameMsg_CommitNavigation and | 45 // particular they are used by FrameMsg_Navigate, FrameMsg_CommitNavigation and |
| 46 // FrameHostMsg_BeginNavigation. | 46 // FrameHostMsg_BeginNavigation. |
| 47 | 47 |
| 48 // Provided by the browser or the renderer ------------------------------------- | 48 // Provided by the browser or the renderer ------------------------------------- |
| 49 | 49 |
| 50 // Used by all navigation IPCs. | 50 // Used by all navigation IPCs. |
| 51 struct CONTENT_EXPORT CommonNavigationParams { | 51 struct CONTENT_EXPORT CommonNavigationParams { |
| 52 CommonNavigationParams(); | 52 CommonNavigationParams(); |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 ~NavigationParams(); | 323 ~NavigationParams(); |
| 324 | 324 |
| 325 CommonNavigationParams common_params; | 325 CommonNavigationParams common_params; |
| 326 StartNavigationParams start_params; | 326 StartNavigationParams start_params; |
| 327 RequestNavigationParams request_params; | 327 RequestNavigationParams request_params; |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 } // namespace content | 330 } // namespace content |
| 331 | 331 |
| 332 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 332 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |