Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1413)

Side by Side Diff: content/common/navigation_params.h

Issue 1222203004: PlzNavigate: Do not send synchronous navigations from the renderer to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment refactoring Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // PlzNavigate
26 // Helper function to determine if the navigation to |url| should make a request
27 // to the network stack. A request should not be sent for data URLs, JavaScript
28 // URLs or about:blank. In these cases, no request needs to be sent.
29 bool ShouldMakeNetworkRequestForURL(const GURL& url);
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
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_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698