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

Unified Diff: content/public/browser/android/navigation_controller_webview.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: Actually removed method decl from NavigationController interface Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/android/navigation_controller_webview.h
diff --git a/content/public/browser/android/navigation_controller_webview.h b/content/public/browser/android/navigation_controller_webview.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a1039ddeee785a45decfd09428db15978c25ecd
--- /dev/null
+++ b/content/public/browser/android/navigation_controller_webview.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_
+#define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_
+#pragma once
+
+class GURL;
+
+namespace content {
+
+struct Referrer;
+
+// An extension of NavigationController adding methods required to implement
Charlie Reis 2012/07/10 20:54:19 nit: Let's use a different word than "extension,"
mnaganov (inactive) 2012/07/23 14:02:30 Done.
+// Android WebView.
+class NavigationControllerWebView {
+ public:
+ // Loads a 'data:' scheme URL with specified base URL and a history entry URL.
+ // This is only safe to be used for browser-initiated data: URL navigations,
+ // since it shows arbitrary content as if it comes from |history_url|.
Charlie Reis 2012/07/10 20:54:19 Is there any clean way to point to the Android Web
mnaganov (inactive) 2012/07/23 14:02:30 I've added a reference to the class-level comment.
+ virtual void LoadDataWithBaseURL(const GURL& data_url,
+ const Referrer& referrer,
+ const GURL& base_url,
+ const GURL& history_url,
+ bool is_overriding_user_agent) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_WEBVIEW_H_

Powered by Google App Engine
This is Rietveld 408576698