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

Side by Side Diff: content/public/browser/android/navigation_controller_webview.h

Issue 10830144: Consolidate all NavigationController::LoadURL and family functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto TOT. Created 8 years, 4 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/navigation_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_
7
8 #include "base/memory/ref_counted_memory.h"
9
10 class GURL;
11
12 namespace content {
13
14 struct Referrer;
15
16 // An addition to NavigationController with methods required to implement
17 // Android WebView.
18 //
19 // For the details, please consult the Android developer reference of
20 // the WebView API:
21 // http://developer.android.com/reference/android/webkit/WebView.html
22 class NavigationControllerWebView {
23 public:
24 // Loads a 'data:' scheme URL with specified base URL and a history entry URL.
25 // This is only safe to be used for browser-initiated data: URL navigations,
26 // since it shows arbitrary content as if it comes from |history_url|.
27 virtual void LoadDataWithBaseURL(const GURL& data_url,
28 const Referrer& referrer,
29 const GURL& base_url,
30 const GURL& history_url,
31 bool is_overriding_user_agent) = 0;
32
33 // Used to directly send a http post request with a raw http body provided.
34 virtual void PostURL(const GURL& url,
35 const content::Referrer& referrer,
36 const base::RefCountedMemory& http_body,
37 bool is_overriding_user_agent) = 0;
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/navigation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698