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

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

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Created 4 years, 1 month 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 public: 71 public:
72 // |navigation_start| comes from the DidStartProvisionalLoad IPC, which tracks 72 // |navigation_start| comes from the DidStartProvisionalLoad IPC, which tracks
73 // both renderer-initiated and browser-initiated navigation start. 73 // both renderer-initiated and browser-initiated navigation start.
74 // PlzNavigate: This value always comes from the CommonNavigationParams 74 // PlzNavigate: This value always comes from the CommonNavigationParams
75 // associated with this navigation. 75 // associated with this navigation.
76 static std::unique_ptr<NavigationHandleImpl> Create( 76 static std::unique_ptr<NavigationHandleImpl> Create(
77 const GURL& url, 77 const GURL& url,
78 FrameTreeNode* frame_tree_node, 78 FrameTreeNode* frame_tree_node,
79 bool is_renderer_initiated, 79 bool is_renderer_initiated,
80 bool is_same_page, 80 bool is_same_page,
81 bool is_srcdoc,
82 const base::TimeTicks& navigation_start, 81 const base::TimeTicks& navigation_start,
83 int pending_nav_entry_id, 82 int pending_nav_entry_id,
84 bool started_from_context_menu); 83 bool started_from_context_menu);
85 ~NavigationHandleImpl() override; 84 ~NavigationHandleImpl() override;
86 85
87 // NavigationHandle implementation: 86 // NavigationHandle implementation:
88 const GURL& GetURL() override; 87 const GURL& GetURL() override;
89 SiteInstance* GetStartingSiteInstance() override; 88 SiteInstance* GetStartingSiteInstance() override;
90 bool IsInMainFrame() override; 89 bool IsInMainFrame() override;
91 bool IsParentMainFrame() override; 90 bool IsParentMainFrame() override;
92 bool IsRendererInitiated() override; 91 bool IsRendererInitiated() override;
93 bool IsSrcdoc() override;
94 bool WasServerRedirect() override; 92 bool WasServerRedirect() override;
95 int GetFrameTreeNodeId() override; 93 int GetFrameTreeNodeId() override;
96 int GetParentFrameTreeNodeId() override; 94 int GetParentFrameTreeNodeId() override;
97 const base::TimeTicks& NavigationStart() override; 95 const base::TimeTicks& NavigationStart() override;
98 bool IsPost() override; 96 bool IsPost() override;
99 const Referrer& GetReferrer() override; 97 const Referrer& GetReferrer() override;
100 bool HasUserGesture() override; 98 bool HasUserGesture() override;
101 ui::PageTransition GetPageTransition() override; 99 ui::PageTransition GetPageTransition() override;
102 bool IsExternalProtocol() override; 100 bool IsExternalProtocol() override;
103 net::Error GetNetErrorCode() override; 101 net::Error GetNetErrorCode() override;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 DEFERRING_RESPONSE, 294 DEFERRING_RESPONSE,
297 READY_TO_COMMIT, 295 READY_TO_COMMIT,
298 DID_COMMIT, 296 DID_COMMIT,
299 DID_COMMIT_ERROR_PAGE, 297 DID_COMMIT_ERROR_PAGE,
300 }; 298 };
301 299
302 NavigationHandleImpl(const GURL& url, 300 NavigationHandleImpl(const GURL& url,
303 FrameTreeNode* frame_tree_node, 301 FrameTreeNode* frame_tree_node,
304 bool is_renderer_initiated, 302 bool is_renderer_initiated,
305 bool is_same_page, 303 bool is_same_page,
306 bool is_srcdoc,
307 const base::TimeTicks& navigation_start, 304 const base::TimeTicks& navigation_start,
308 int pending_nav_entry_id, 305 int pending_nav_entry_id,
309 bool started_from_context_menu); 306 bool started_from_context_menu);
310 307
311 NavigationThrottle::ThrottleCheckResult CheckWillStartRequest(); 308 NavigationThrottle::ThrottleCheckResult CheckWillStartRequest();
312 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); 309 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest();
313 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse(); 310 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse();
314 311
315 // Called when WillProcessResponse checks are done, to find the final 312 // Called when WillProcessResponse checks are done, to find the final
316 // RenderFrameHost for the navigation. Checks whether the navigation should be 313 // RenderFrameHost for the navigation. Checks whether the navigation should be
(...skipping 22 matching lines...) Expand all
339 GURL url_; 336 GURL url_;
340 scoped_refptr<SiteInstance> starting_site_instance_; 337 scoped_refptr<SiteInstance> starting_site_instance_;
341 Referrer sanitized_referrer_; 338 Referrer sanitized_referrer_;
342 bool has_user_gesture_; 339 bool has_user_gesture_;
343 ui::PageTransition transition_; 340 ui::PageTransition transition_;
344 bool is_external_protocol_; 341 bool is_external_protocol_;
345 net::Error net_error_code_; 342 net::Error net_error_code_;
346 RenderFrameHostImpl* render_frame_host_; 343 RenderFrameHostImpl* render_frame_host_;
347 const bool is_renderer_initiated_; 344 const bool is_renderer_initiated_;
348 const bool is_same_page_; 345 const bool is_same_page_;
349 const bool is_srcdoc_;
350 bool was_redirected_; 346 bool was_redirected_;
351 scoped_refptr<net::HttpResponseHeaders> response_headers_; 347 scoped_refptr<net::HttpResponseHeaders> response_headers_;
352 net::HttpResponseInfo::ConnectionInfo connection_info_; 348 net::HttpResponseInfo::ConnectionInfo connection_info_;
353 349
354 // The original url of the navigation. This may differ from |url_| if the 350 // The original url of the navigation. This may differ from |url_| if the
355 // navigation encounters redirects. 351 // navigation encounters redirects.
356 const GURL original_url_; 352 const GURL original_url_;
357 353
358 // The HTTP method used for the navigation. 354 // The HTTP method used for the navigation.
359 std::string method_; 355 std::string method_;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 bool started_from_context_menu_; 421 bool started_from_context_menu_;
426 422
427 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 423 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
428 424
429 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 425 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
430 }; 426 };
431 427
432 } // namespace content 428 } // namespace content
433 429
434 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 430 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698