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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2534393003: (Reland) Remove about:srcdoc url conversion. (Closed)
Patch Set: Rebase. Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 public: 75 public:
76 // |navigation_start| comes from the DidStartProvisionalLoad IPC, which tracks 76 // |navigation_start| comes from the DidStartProvisionalLoad IPC, which tracks
77 // both renderer-initiated and browser-initiated navigation start. 77 // both renderer-initiated and browser-initiated navigation start.
78 // PlzNavigate: This value always comes from the CommonNavigationParams 78 // PlzNavigate: This value always comes from the CommonNavigationParams
79 // associated with this navigation. 79 // associated with this navigation.
80 static std::unique_ptr<NavigationHandleImpl> Create( 80 static std::unique_ptr<NavigationHandleImpl> Create(
81 const GURL& url, 81 const GURL& url,
82 FrameTreeNode* frame_tree_node, 82 FrameTreeNode* frame_tree_node,
83 bool is_renderer_initiated, 83 bool is_renderer_initiated,
84 bool is_same_page, 84 bool is_same_page,
85 bool is_srcdoc,
86 const base::TimeTicks& navigation_start, 85 const base::TimeTicks& navigation_start,
87 int pending_nav_entry_id, 86 int pending_nav_entry_id,
88 NavigationGesture gesture, 87 NavigationGesture gesture,
89 bool started_from_context_menu); 88 bool started_from_context_menu);
90 ~NavigationHandleImpl() override; 89 ~NavigationHandleImpl() override;
91 90
92 // NavigationHandle implementation: 91 // NavigationHandle implementation:
93 const GURL& GetURL() override; 92 const GURL& GetURL() override;
94 SiteInstance* GetStartingSiteInstance() override; 93 SiteInstance* GetStartingSiteInstance() override;
95 bool IsInMainFrame() override; 94 bool IsInMainFrame() override;
96 bool IsParentMainFrame() override; 95 bool IsParentMainFrame() override;
97 bool IsRendererInitiated() override; 96 bool IsRendererInitiated() override;
98 bool IsSrcdoc() override;
99 bool WasServerRedirect() override; 97 bool WasServerRedirect() override;
100 int GetFrameTreeNodeId() override; 98 int GetFrameTreeNodeId() override;
101 int GetParentFrameTreeNodeId() override; 99 int GetParentFrameTreeNodeId() override;
102 const base::TimeTicks& NavigationStart() override; 100 const base::TimeTicks& NavigationStart() override;
103 bool IsPost() override; 101 bool IsPost() override;
104 const Referrer& GetReferrer() override; 102 const Referrer& GetReferrer() override;
105 bool HasUserGesture() override; 103 bool HasUserGesture() override;
106 ui::PageTransition GetPageTransition() override; 104 ui::PageTransition GetPageTransition() override;
107 bool IsExternalProtocol() override; 105 bool IsExternalProtocol() override;
108 net::Error GetNetErrorCode() override; 106 net::Error GetNetErrorCode() override;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 DEFERRING_RESPONSE, 296 DEFERRING_RESPONSE,
299 READY_TO_COMMIT, 297 READY_TO_COMMIT,
300 DID_COMMIT, 298 DID_COMMIT,
301 DID_COMMIT_ERROR_PAGE, 299 DID_COMMIT_ERROR_PAGE,
302 }; 300 };
303 301
304 NavigationHandleImpl(const GURL& url, 302 NavigationHandleImpl(const GURL& url,
305 FrameTreeNode* frame_tree_node, 303 FrameTreeNode* frame_tree_node,
306 bool is_renderer_initiated, 304 bool is_renderer_initiated,
307 bool is_same_page, 305 bool is_same_page,
308 bool is_srcdoc,
309 const base::TimeTicks& navigation_start, 306 const base::TimeTicks& navigation_start,
310 int pending_nav_entry_id, 307 int pending_nav_entry_id,
311 NavigationGesture gesture, 308 NavigationGesture gesture,
312 bool started_from_context_menu); 309 bool started_from_context_menu);
313 310
314 NavigationThrottle::ThrottleCheckResult CheckWillStartRequest(); 311 NavigationThrottle::ThrottleCheckResult CheckWillStartRequest();
315 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); 312 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest();
316 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse(); 313 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse();
317 314
318 // Called when WillProcessResponse checks are done, to find the final 315 // Called when WillProcessResponse checks are done, to find the final
(...skipping 23 matching lines...) Expand all
342 GURL url_; 339 GURL url_;
343 scoped_refptr<SiteInstance> starting_site_instance_; 340 scoped_refptr<SiteInstance> starting_site_instance_;
344 Referrer sanitized_referrer_; 341 Referrer sanitized_referrer_;
345 NavigationGesture gesture_; 342 NavigationGesture gesture_;
346 ui::PageTransition transition_; 343 ui::PageTransition transition_;
347 bool is_external_protocol_; 344 bool is_external_protocol_;
348 net::Error net_error_code_; 345 net::Error net_error_code_;
349 RenderFrameHostImpl* render_frame_host_; 346 RenderFrameHostImpl* render_frame_host_;
350 const bool is_renderer_initiated_; 347 const bool is_renderer_initiated_;
351 const bool is_same_page_; 348 const bool is_same_page_;
352 const bool is_srcdoc_;
353 bool was_redirected_; 349 bool was_redirected_;
354 scoped_refptr<net::HttpResponseHeaders> response_headers_; 350 scoped_refptr<net::HttpResponseHeaders> response_headers_;
355 net::HttpResponseInfo::ConnectionInfo connection_info_; 351 net::HttpResponseInfo::ConnectionInfo connection_info_;
356 352
357 // The original url of the navigation. This may differ from |url_| if the 353 // The original url of the navigation. This may differ from |url_| if the
358 // navigation encounters redirects. 354 // navigation encounters redirects.
359 const GURL original_url_; 355 const GURL original_url_;
360 356
361 // The HTTP method used for the navigation. 357 // The HTTP method used for the navigation.
362 std::string method_; 358 std::string method_;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 std::string searchable_form_encoding_; 427 std::string searchable_form_encoding_;
432 428
433 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 429 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
434 430
435 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 431 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
436 }; 432 };
437 433
438 } // namespace content 434 } // namespace content
439 435
440 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 436 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698