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

Side by Side Diff: content/public/browser/navigation_controller.h

Issue 10544175: Add an ability to call WebKit's WebFrame::loadData via NavigationController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/navigation_entry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 PageTransition type, 160 PageTransition type,
161 const std::string& extra_headers) = 0; 161 const std::string& extra_headers) = 0;
162 162
163 // Same as LoadURL, but for renderer-initiated navigations. This state is 163 // Same as LoadURL, but for renderer-initiated navigations. This state is
164 // important for tracking whether to display pending URLs. 164 // important for tracking whether to display pending URLs.
165 virtual void LoadURLFromRenderer(const GURL& url, 165 virtual void LoadURLFromRenderer(const GURL& url,
166 const Referrer& referrer, 166 const Referrer& referrer,
167 PageTransition type, 167 PageTransition type,
168 const std::string& extra_headers) = 0; 168 const std::string& extra_headers) = 0;
169 169
170 // Loads a 'data:' scheme URL with specified base URL and a history entry URL.
171 // This can only be used for browser-initiated navigations.
Charlie Reis 2012/06/19 17:17:25 Thanks. Now that I know a bit more, I think we ne
mnaganov (inactive) 2012/07/03 08:07:52 Done. Sorry, I was swamped by other tasks, now I'm
172 virtual void LoadDataWithBaseURL(const GURL& data_url,
173 const Referrer& referrer,
174 const GURL& base_url,
175 const GURL& history_url,
176 bool is_overriding_user_agent) = 0;
177
170 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new 178 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new
171 // navigation as being transferred from one RVH to another. In this case the 179 // navigation as being transferred from one RVH to another. In this case the
172 // browser can recycle the old request once the new renderer wants to 180 // browser can recycle the old request once the new renderer wants to
173 // navigate. 181 // navigate.
174 // |transferred_global_request_id| identifies the request ID of the old 182 // |transferred_global_request_id| identifies the request ID of the old
175 // request. 183 // request.
176 virtual void TransferURL( 184 virtual void TransferURL(
177 const GURL& url, 185 const GURL& url,
178 const Referrer& referrer, 186 const Referrer& referrer,
179 PageTransition transition, 187 PageTransition transition,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; 268 virtual void CopyStateFromAndPrune(NavigationController* source) = 0;
261 269
262 // Removes all the entries except the active entry. If there is a new pending 270 // Removes all the entries except the active entry. If there is a new pending
263 // navigation it is preserved. 271 // navigation it is preserved.
264 virtual void PruneAllButActive() = 0; 272 virtual void PruneAllButActive() = 0;
265 }; 273 };
266 274
267 } // namespace content 275 } // namespace content
268 276
269 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 277 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/navigation_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698