summaryrefslogtreecommitdiffstats
path: root/android_webview/lib
Commit message (Collapse)AuthorAgeFilesLines
* Implement android_webview url intercepting.mkosiba@chromium.org2012-10-162-6/+10
| | | | | | | | | | | | This implements the WebViewClient shouldInterceptRequest and onLoadResource callbacks. BUG=138481 Android-only change - ran through android try. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11110013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162141 0039d316-1c4b-4281-b951-d872f2087c98
* Implement AwContentRendererClient and remove chrome/ dependencyboliu@chromium.org2012-10-112-40/+1
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11096036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161409 0039d316-1c4b-4281-b951-d872f2087c98
* This change is motivated by the need to implement the Android ↵benm@google.com2012-10-111-2/+13
| | | | | | | | | | | | | | | | | | | | WebView.loadDataWithBaseURL API[1], which allows access to local file:// resources (depending on AwSettings.getAllowFileAccess) as long as the base URL provided is not "data:". When AwSettings.getAllowFileAccess returns false, data URIs loaded with a non-data base URL should be able to access file:///android_asset and file:///android_res/, but not the wider filesystem. We grant the WebView process access to file:// via ChildProcessSecurityPolicy (as WebView is single process we do this on process startup) and add a field to ViewMsg_NavigateParams that indicates if the URL being loaded should have access to local loads. This is bit is checked when the provisional load commits and if set, grants the SecurityOrigin access to local resources. The bit defaults to false and is only set in android_webview when AwContents loads a data URL with a non-data base URL, so there should be no behavior change outside of android_webview. Once the SecurityOrigin allows local loads, code already present in android_webview controls whether the URL should be able to load either only android_asset and android_res or any file:// URL (see https://codereview.chromium.org/11090003/). [1] http://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) BUG=152223 Review URL: https://codereview.chromium.org/10990056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161355 0039d316-1c4b-4281-b951-d872f2087c98
* Switch AutofillExternalDelegate to use WebContentsUserData.avi@chromium.org2012-10-101-4/+3
| | | | | | | | | | BUG=107201 TEST=no visible change Review URL: https://chromiumcodereview.appspot.com/10993091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161214 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Add missing superclass method invocation in AwContentBrowserClient.mnaganov@chromium.org2012-10-101-0/+1
| | | | | | | | | | R=joth@chromium.org BUG=155042 Review URL: https://chromiumcodereview.appspot.com/11086051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161158 0039d316-1c4b-4281-b951-d872f2087c98
* Implement AwContentsClient and remove dependency on chrome/boliu@chromium.org2012-10-103-7/+3
| | | | | | | | | | | | | We are not depending on much functionality from ContentClient yet, so most methods are either no-op, left unimplemented with a TODO, or copied straight from the ChromeContentsClient implementation. BUG= Review URL: https://chromiumcodereview.appspot.com/11017024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161120 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Upstream WebView.allow{Content|File}Access implementation.mnaganov@chromium.org2012-10-102-0/+13
| | | | | | | | | | R=benm@chromium.org,joth@chromium.org BUG=153516 Review URL: https://chromiumcodereview.appspot.com/11090003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161103 0039d316-1c4b-4281-b951-d872f2087c98
* Include infobar stubs for unit_tests and testshell.nileshagrawal@chromium.org2012-10-102-0/+9
| | | | | | | | | Also add a stub for webview. BUG=137571 Review URL: https://chromiumcodereview.appspot.com/11087017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160998 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Disable chrome preconnect behavior for WebView.benm@chromium.org2012-10-052-0/+11
| | | | | | | | | | | | | | Preconnect breaks our test runners :( see https://code.google.com/p/chromium-os/issues/detail?id=13043 for more information why. Android bots look good. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11040054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160368 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Set a default locale for WebView.leandrogracia@chromium.org2012-10-032-0/+10
| | | | | | | | | | | | | | Recent WebKit rolls have introduced an assertion for the default language that is causing some failures in WebView. The reason is that the default locale is not properly iset in single process mode. However, since this will probably require more elaborate solution we'll be setting a value manually for now to unblock tests and prevent further issues. BUG=153758 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11054012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159899 0039d316-1c4b-4281-b951-d872f2087c98
* Implement part of Android WebView.clearCacheboliu@chromium.org2012-10-031-0/+10
| | | | | | | | | | | | For velocity, not refactoring BrowsingDataRemover code into content/. This method is similar to BrowsingDataRemover::REMOVE_CACHE mask. Still need to implement clearing http disk cache. BUG= Review URL: https://chromiumcodereview.appspot.com/11051003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159827 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix the final crash in the android_webview test runner.mkosiba@chromium.org2012-10-011-0/+8
| | | | | | | | | | | | | android_webview will require a specific rendering architecture that hasn't landed yet. This change lets us run our tests (even though we're not showing anything on screen). BUG=152904 TEST=run_instrumentation_tests.py --test-apk AndroidWebViewTest Review URL: https://codereview.chromium.org/10979075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159505 0039d316-1c4b-4281-b951-d872f2087c98
* Move AndroidProtocolAdaptor into android_webviewmnaganov@chromium.org2012-09-274-8/+29
| | | | | | | | | | | Also move Android-specific URL constants into android_webview R=benm@chromium.org,joth@chromium.org Review URL: https://chromiumcodereview.appspot.com/10985044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159078 0039d316-1c4b-4281-b951-d872f2087c98
* Fix warnings when compiling with clangmichaelbai@chromium.org2012-09-252-9/+0
| | | | | | | | | TBR=scherkus BUG=143931 Review URL: https://chromiumcodereview.appspot.com/10983004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158493 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Upstream the WebView find-in-page API implementation.leandrogracia@chromium.org2012-09-211-0/+7
| | | | | | | | | | | | | This API requires implementing a browser -> renderer synchronous findAll message. While this method is deprecated and an alternative asynchronous version is suggested we still need to implement it for legacy WebView compatibility. BUG=136762 TEST=3 new java tests. Review URL: https://codereview.chromium.org/10941015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157975 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Remove the dependency on TabContents.mnaganov@chromium.org2012-09-182-12/+7
| | | | | | | | | | | | | | So far, all Aw tests that we have don't change their state after removing this dependency. We will need things like AutoFillManager, FaviconTabHelper, PasswordManager and SSLHelper, but it looks like it will be better to componentize them in the first place. R=joth@chromium.org,android-webview-reviews@google.com Review URL: https://codereview.chromium.org/10916309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157328 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Setup OWNERS structure for android_webviewjoth@chromium.org2012-09-141-0/+5
| | | | | | | | | | | Explicitly lock down the lib/ directory approvers, while opening the rest of the tree up to the core team. BUG= Review URL: https://chromiumcodereview.appspot.com/10914276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156723 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebView implementation for CookieManager.tedchoc@chromium.org2012-09-074-5/+111
| | | | | | | | | | | | | Additional details of the requirements can be found from the Android SDK. http://developer.android.com/reference/android/webkit/CookieManager.html BUG= TEST=make forwarder android_webview_apk android_webview_test_apk Review URL: https://chromiumcodereview.appspot.com/10913074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155331 0039d316-1c4b-4281-b951-d872f2087c98
* Implement DocuementHasImagesjoth@chromium.org2012-09-012-1/+16
| | | | | | | | | | | | Requires new plumbing to get custom android_webview layer IPC messages a flowing. BUG= Review URL: https://chromiumcodereview.appspot.com/10890024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154564 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView: tidy up source/gyp layout.torne@chromium.org2012-08-304-321/+19
| | | | | | | | | | | | | | | | | | 1) Rename WebViewMainDelegate to AwMainDelegate for consistency with other classes. 2) Move gyp file to the top level and don't bother having separate gypi files for the subcomponents for now; the file list is very short anyway and is not going to be a significant source of contention between the small number of webview developers at this time, and it's easier to see what's going on if it's all in one place. BUG= Review URL: https://chromiumcodereview.appspot.com/10893025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154020 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the android_webview build.mkosiba@chromium.org2012-08-281-6/+8
| | | | | | | | | | | This is fixes the build break introduced in r153527. BUG= Review URL: https://chromiumcodereview.appspot.com/10889006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153699 0039d316-1c4b-4281-b951-d872f2087c98
* Add a test runner for android_webview.mkosiba@chromium.org2012-08-237-13/+418
| | | | | | | | | | | | This change adds the necessary build rules for an android_webview test APK and test runner APK and a trivial test case. This change also adds a static Java library target to the WebContentsDelegateAndroid component. BUG= Review URL: https://chromiumcodereview.appspot.com/10855171 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153046 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the Android port to allow access to the chrome layer.leandrogracia@chromium.org2012-08-212-2/+35
| | | | | | | | | | | | | | | | | | | While in desktop chrome the main WebContentsDelegate is implemented in the chrome layer by the Browser class, the Android port implements it in the content layer in its ContentViewClient class. However, because of the content layering limitations this renders the chrome layer out of reach. This patch splits the WebContentsDelegate implementation in ContentViewClient into a separate class named WebContentsDelegateAndroid in the first chrome browser component "web_contents_delegate_android". Also, this patch introduces stubs for Chrome-specific and WebView-specific extensions of WebContentsDelegateAndroid in order to set the foundations for later patches. BUG=137967 TEST=existing tests Review URL: https://chromiumcodereview.appspot.com/10831060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152598 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Remove the webview_core static library.mkosiba@chromium.org2012-08-161-15/+2
| | | | | | | | | | | | | | This removes webview_core and moves the deps directly into the libwebview target. The reason for this change is that make doesn't work correctly with a shared_library that doesn't contain any source files. BUG= Review URL: https://chromiumcodereview.appspot.com/10827382 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151949 0039d316-1c4b-4281-b951-d872f2087c98
* Build target for Android WebView.torne@chromium.org2012-08-096-0/+237
This creates a "libwebview" build target for the JNI code to power the Android WebView. This is unfinished and can't run without additional code that has not yet been upstreamed, but it compiles and links successfully. In its present state the WebViewMainDelegate reuses Chrome implementations of other content client interfaces. This is a temporary state of affairs until necessary refactorings can be performed. Review URL: https://chromiumcodereview.appspot.com/10825155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150780 0039d316-1c4b-4281-b951-d872f2087c98