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

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

Issue 2494633004: 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 bool started_from_context_menu); 87 bool started_from_context_menu);
89 ~NavigationHandleImpl() override; 88 ~NavigationHandleImpl() override;
90 89
91 // NavigationHandle implementation: 90 // NavigationHandle implementation:
92 const GURL& GetURL() override; 91 const GURL& GetURL() override;
93 SiteInstance* GetStartingSiteInstance() override; 92 SiteInstance* GetStartingSiteInstance() override;
94 bool IsInMainFrame() override; 93 bool IsInMainFrame() override;
95 bool IsParentMainFrame() override; 94 bool IsParentMainFrame() override;
96 bool IsRendererInitiated() override; 95 bool IsRendererInitiated() override;
97 bool IsSrcdoc() override;
98 bool WasServerRedirect() override; 96 bool WasServerRedirect() override;
99 int GetFrameTreeNodeId() override; 97 int GetFrameTreeNodeId() override;
100 int GetParentFrameTreeNodeId() override; 98 int GetParentFrameTreeNodeId() override;
101 const base::TimeTicks& NavigationStart() override; 99 const base::TimeTicks& NavigationStart() override;
102 bool IsPost() override; 100 bool IsPost() override;
103 const Referrer& GetReferrer() override; 101 const Referrer& GetReferrer() override;
104 bool HasUserGesture() override; 102 bool HasUserGesture() override;
105 ui::PageTransition GetPageTransition() override; 103 ui::PageTransition GetPageTransition() override;
106 bool IsExternalProtocol() override; 104 bool IsExternalProtocol() override;
107 net::Error GetNetErrorCode() override; 105 net::Error GetNetErrorCode() override;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 DEFERRING_RESPONSE, 297 DEFERRING_RESPONSE,
300 READY_TO_COMMIT, 298 READY_TO_COMMIT,
301 DID_COMMIT, 299 DID_COMMIT,
302 DID_COMMIT_ERROR_PAGE, 300 DID_COMMIT_ERROR_PAGE,
303 }; 301 };
304 302
305 NavigationHandleImpl(const GURL& url, 303 NavigationHandleImpl(const GURL& url,
306 FrameTreeNode* frame_tree_node, 304 FrameTreeNode* frame_tree_node,
307 bool is_renderer_initiated, 305 bool is_renderer_initiated,
308 bool is_same_page, 306 bool is_same_page,
309 bool is_srcdoc,
310 const base::TimeTicks& navigation_start, 307 const base::TimeTicks& navigation_start,
311 int pending_nav_entry_id, 308 int pending_nav_entry_id,
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
319 // RenderFrameHost for the navigation. Checks whether the navigation should be 316 // RenderFrameHost for the navigation. Checks whether the navigation should be
(...skipping 22 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 bool has_user_gesture_; 342 bool has_user_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