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

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

Issue 2355023002: Preserving Content-Type header from http request in OpenURL path. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NAVIGATOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; 59 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override;
60 bool NavigateToPendingEntry(FrameTreeNode* frame_tree_node, 60 bool NavigateToPendingEntry(FrameTreeNode* frame_tree_node,
61 const FrameNavigationEntry& frame_entry, 61 const FrameNavigationEntry& frame_entry,
62 ReloadType reload_type, 62 ReloadType reload_type,
63 bool is_same_document_history_load) override; 63 bool is_same_document_history_load) override;
64 bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host) override; 64 bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host) override;
65 void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 65 void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
66 const GURL& url, 66 const GURL& url,
67 bool uses_post, 67 bool uses_post,
68 const scoped_refptr<ResourceRequestBodyImpl>& body, 68 const scoped_refptr<ResourceRequestBodyImpl>& body,
69 const std::string& extra_headers,
69 SiteInstance* source_site_instance, 70 SiteInstance* source_site_instance,
70 const Referrer& referrer, 71 const Referrer& referrer,
71 WindowOpenDisposition disposition, 72 WindowOpenDisposition disposition,
72 bool should_replace_current_entry, 73 bool should_replace_current_entry,
73 bool user_gesture) override; 74 bool user_gesture) override;
74 void RequestTransferURL( 75 void RequestTransferURL(RenderFrameHostImpl* render_frame_host,
75 RenderFrameHostImpl* render_frame_host, 76 const GURL& url,
76 const GURL& url, 77 SiteInstance* source_site_instance,
77 SiteInstance* source_site_instance, 78 const std::vector<GURL>& redirect_chain,
78 const std::vector<GURL>& redirect_chain, 79 const Referrer& referrer,
79 const Referrer& referrer, 80 ui::PageTransition page_transition,
80 ui::PageTransition page_transition, 81 const GlobalRequestID& transferred_global_request_id,
81 const GlobalRequestID& transferred_global_request_id, 82 bool should_replace_current_entry,
82 bool should_replace_current_entry, 83 const std::string& method,
83 const std::string& method, 84 scoped_refptr<ResourceRequestBodyImpl> post_body,
84 scoped_refptr<ResourceRequestBodyImpl> post_body) override; 85 const std::string& extra_headers) override;
85 void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override; 86 void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override;
86 void OnBeginNavigation(FrameTreeNode* frame_tree_node, 87 void OnBeginNavigation(FrameTreeNode* frame_tree_node,
87 const CommonNavigationParams& common_params, 88 const CommonNavigationParams& common_params,
88 const BeginNavigationParams& begin_params) override; 89 const BeginNavigationParams& begin_params) override;
89 void FailedNavigation(FrameTreeNode* frame_tree_node, 90 void FailedNavigation(FrameTreeNode* frame_tree_node,
90 bool has_stale_copy_in_cache, 91 bool has_stale_copy_in_cache,
91 int error_code) override; 92 int error_code) override;
92 void LogResourceRequestTime(base::TimeTicks timestamp, 93 void LogResourceRequestTime(base::TimeTicks timestamp,
93 const GURL& url) override; 94 const GURL& url) override;
94 void LogBeforeUnloadTime( 95 void LogBeforeUnloadTime(
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 NavigatorDelegate* delegate_; 159 NavigatorDelegate* delegate_;
159 160
160 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; 161 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 163 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
163 }; 164 };
164 165
165 } // namespace content 166 } // namespace content
166 167
167 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 168 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698