summaryrefslogtreecommitdiffstats
path: root/android_webview/browser
Commit message (Collapse)AuthorAgeFilesLines
* Fix page scaling in Android Webview SW rendering.leandrogracia@chromium.org2013-03-062-15/+65
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/12310136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186532 0039d316-1c4b-4281-b951-d872f2087c98
* Enable cookies by defaultkristianm@chromium.org2013-03-061-1/+1
| | | | | | | | | | | | This matches the old android webview Bug=7890385 BUG= Review URL: https://chromiumcodereview.appspot.com/12506005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186419 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 186347jochen@chromium.org2013-03-066-24/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke MalwareDetailsTest: [ RUN ] MalwareDetailsTest.HTTPCache Received signal 11 SEGV_MAPERR 00010000001e [0x00000285f2ee] base::debug::StackTrace::StackTrace() [0x00000285f3f6] base::debug::(anonymous namespace)::StackDumpSignalHandler() [0x7f5274c148f0] <unknown> [0x0000028a82f7] base::SupportsUserData::GetUserData() [0x00000215307f] (anonymous namespace)::GetDataForResourceContext() [0x00000215315c] InstantIOContext::RemoveInstantProcessOnIO() [0x000002881dd9] MessageLoop::RunTask() [0x00000288261b] MessageLoop::DeferOrRunPendingTask() [0x000002882c28] MessageLoop::DoWork() [0x000002853f4a] base::MessagePumpLibevent::Run() [0x00000287d8f2] MessageLoop::RunInternal() [0x00000289966d] base::RunLoop::Run() [0x00000287cca5] MessageLoop::Run() [0x0000042ee488] content::BrowserThreadImpl::IOThreadRun() [0x0000042ef28b] content::BrowserThreadImpl::Run() [0x0000028b4d88] base::Thread::ThreadMain() [0x0000028afc01] base::(anonymous namespace)::ThreadFunc() [0x7f5274c0b9ca] start_thread [0x7f5272728cdd] clone > Add chrome-search: access from Instant overlay > > Enables the Instant NTP page access to: > chrome-search://theme/*, > chrome-search://favicon/*, and > chrome-search://thumb/*. > > This CL has a number of aspects to make the installed theme > background image available to the Instant overlay: > 1. Utilizes the new chrome-search: scheme that is accessible only > to the Instant overlay's render process. This is enforced > on the renderer side by WebKit::WebSecurityPolicy > facilities. This is enforced on the browser side by the > InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities. > 2. Whitelists the chrome-search://theme origin to be made > available to the specific Instant overlay's origin/url. > 3. Backend CSS that sets the appropriate background image > that resides in the chrome-search://theme origin. > 4. A small refactoring of the Instant tests to support mix-in > usage of InstantTestBase. > > BUG=172408, 134937 > TEST=InstantPolicyTest.SearchSchemePolicy > R=sreeram@chromium.org, creis@chromium.org > > > Review URL: https://chromiumcodereview.appspot.com/11896113 TBR=dhollowa@chromium.org Review URL: https://codereview.chromium.org/12521005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186371 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome-search: access from Instant overlaydhollowa@chromium.org2013-03-066-138/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables the Instant NTP page access to: chrome-search://theme/*, chrome-search://favicon/*, and chrome-search://thumb/*. This CL has a number of aspects to make the installed theme background image available to the Instant overlay: 1. Utilizes the new chrome-search: scheme that is accessible only to the Instant overlay's render process. This is enforced on the renderer side by WebKit::WebSecurityPolicy facilities. This is enforced on the browser side by the InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities. 2. Whitelists the chrome-search://theme origin to be made available to the specific Instant overlay's origin/url. 3. Backend CSS that sets the appropriate background image that resides in the chrome-search://theme origin. 4. A small refactoring of the Instant tests to support mix-in usage of InstantTestBase. BUG=172408, 134937 TEST=InstantPolicyTest.SearchSchemePolicy R=sreeram@chromium.org, creis@chromium.org Review URL: https://chromiumcodereview.appspot.com/11896113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186347 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Add simple support for remote web debuggingmnaganov@chromium.org2013-03-014-0/+180
| | | | | | | | | | | | | | | This is a non-final way of exposing web debugging for WebView, but it is extremely useful for anyone who needs to debug its web content in the new version of WebView. This patch unconditionally exposes 'webview_devtools_remote_<pid>' linux abstract socket for remote debugging. The DevTools frontend is already being bundled with WebView, so this patch doesn't add any new resources. Review URL: https://codereview.chromium.org/12378011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185543 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for CookieManager init race conditionjoth@chromium.org2013-03-012-8/+16
| | | | | | | | | | | | | | | | | As the cookiemanager can be used at any time from any thread, we need to ensure it is constructed early in startup, synchronously to the AndroidBrowserProcess.init() call. This rolls back a little of the change made in http://src.chromium.org/viewvc/chrome/trunk/src/android_webview/browser/net/init_native_callback.h?view=diff&r1=174173&r2=174174 (intenral issue b/8249158) BUG= Review URL: https://chromiumcodereview.appspot.com/12387028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185462 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement WebView.setInitialScalemnaganov@chromium.org2013-02-282-0/+10
| | | | | | | | | | WebView.setInitialScale allows to set up the initial page scale which overrides viewport meta tag settings. Review URL: https://chromiumcodereview.appspot.com/12315104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185236 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Update WebView.EnableFixedLayoutMode in sync with ↵mnaganov@chromium.org2013-02-272-0/+12
| | | | | | | | | | | | | | | | | | | ViewportEnabled After WebKit http://trac.webkit.org/changeset/143735, WebView.EnableFixedLayoutMode must be updated together with WebSettings.ViewportEnabled. This is a temporary state of affairs, one of these settings will be removed in future. Only Android WebView needs to switch thid mode dynamically, thus the change is implemented in the android_webview layer. BUG=177684 Review URL: https://chromiumcodereview.appspot.com/12317071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185016 0039d316-1c4b-4281-b951-d872f2087c98
* Return empty Picture objects for empty SkPictures.leandrogracia@chromium.org2013-02-271-0/+6
| | | | | | | | | | | | | The current code is not properly handling the empty vs NULL Picture case. Fix this to prevent trying to create empty auxiliary bitmaps, which raises Java exceptions. BUG= NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12340105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184943 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Webviewclient.onReceivedSslErrorsgurun@chromium.org2013-02-265-5/+137
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/12091111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184643 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement WebSettings.{get|set}LoadWithOverviewModemnaganov@chromium.org2013-02-262-0/+7
| | | | | | | | | | | The 'LoadWithOverviewMode' setting controls, whether the page needs to be scaled to fit contents into the viewport. Chrome on Android always adjusts page scale to fit contents. We need to make this behavior controllable. Review URL: https://chromiumcodereview.appspot.com/12217134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184631 0039d316-1c4b-4281-b951-d872f2087c98
* Pass Resourcetype to AllowCertificateError callbacksgurun@chromium.org2013-02-252-0/+2
| | | | | | | | | | | BUG= Unlike the browser, the Chromium based webview needs to process and pass SslErrors to the application even for the non-Main-Frame resource types. This change creates the plumbing for that. Review URL: https://chromiumcodereview.appspot.com/12207071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184483 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-243-3/+3
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Implement WebStorage API methodsboliu@chromium.org2013-02-228-29/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the methods involves calling methods to QuotaManager on the IO thread and translating the arguments between Java and native code. Introduce AwQuotaManagerBridge to facilitate this logic. The Java AwQuotaManagerBridge is currently a singleton but should be owned by AwBrowserContext when we have one. The native one is owned by native AwBrowserContext. Java calls the corresponding native AwBrowserContext to obtain the pointer. Introduced JniDependencyFactory interface used to create native objects under native but is used or passed in BrowserContext or ContentsBrowserClient. Also added base::android::ToJavaLongArray to convert to Java long arrays. BUG= Android only change. Ran through android bots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12253057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184139 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Remove obsolete webviewchromium_strings.pak references.benm@chromium.org2013-02-191-12/+1
| | | | | | | | | We are now using the locale paks instead. Review URL: https://chromiumcodereview.appspot.com/12230058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183269 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Migrate the rendering code to a separate set of classes.leandrogracia@chromium.org2013-02-158-50/+935
| | | | | | | | | | | | | | | | | | | | | It takes from https://codereview.chromium.org/11823027/ and assumes SW rendering and Capture Picture to be ready and enabled. Most changes just move around code. The major structural changes are: - Introduce a browser-layer view renderer interface and move the code to its implementation. - Take out the rendering-related IPC to its own separate set of host/renderer classes. - Change the way the view hierarchy and the compositor are initialized. Now they are created and set on BrowserViewRendererImpl construction. - Content is now provided via a ContentViewCore object when initialized, updating the layer to use and the WebContents to observe. - Remove/update the DEPS and gyp changes introduced to support rendering in the native layer. BUG=167913,167908,161409 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182710 Review URL: https://chromiumcodereview.appspot.com/12041009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182717 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 182710, this broke check_deps.marja@chromium.org2013-02-158-935/+50
| | | | | | | | | | | | | | | | | | | | | | | | > [Android WebView] Migrate the rendering code to a separate set of classes. > > It takes from https://codereview.chromium.org/11823027/ > and assumes SW rendering and Capture Picture to be ready and enabled. > > Most changes just move around code. The major structural changes are: > - Introduce a browser-layer view renderer interface and move the code to its implementation. > - Take out the rendering-related IPC to its own separate set of host/renderer classes. > - Change the way the view hierarchy and the compositor are initialized. Now they are created and set on BrowserViewRendererImpl construction. > - Content is now provided via a ContentViewCore object when initialized, updating the layer to use and the WebContents to observe. > - Remove/update the DEPS and gyp changes introduced to support rendering in the native layer. > > BUG=167913,167908,161409 > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/12041009 TBR=leandrogracia@chromium.org Review URL: https://codereview.chromium.org/12230059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182712 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Migrate the rendering code to a separate set of classes.leandrogracia@chromium.org2013-02-158-50/+935
| | | | | | | | | | | | | | | | | | | It takes from https://codereview.chromium.org/11823027/ and assumes SW rendering and Capture Picture to be ready and enabled. Most changes just move around code. The major structural changes are: - Introduce a browser-layer view renderer interface and move the code to its implementation. - Take out the rendering-related IPC to its own separate set of host/renderer classes. - Change the way the view hierarchy and the compositor are initialized. Now they are created and set on BrowserViewRendererImpl construction. - Content is now provided via a ContentViewCore object when initialized, updating the layer to use and the WebContents to observe. - Remove/update the DEPS and gyp changes introduced to support rendering in the native layer. BUG=167913,167908,161409 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12041009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182710 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement WebSettings.setTextZoom for legacy layout modesmnaganov@chromium.org2013-02-142-0/+9
| | | | | | | | We rely on the fact that on Android, page scaling factor isn't used for page zooming, so text scaling can be used (unlike desktop Chrome). Review URL: https://chromiumcodereview.appspot.com/12220012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182481 0039d316-1c4b-4281-b951-d872f2087c98
* Implementing geolocation for the Android Webviewkristianm@chromium.org2013-02-141-10/+14
| | | | | | | | | | | | Enabling geolocation callbacks BUG= Review URL: https://chromiumcodereview.appspot.com/12211047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182465 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused pieces of URLRequestJobFactory API.pauljensen@chromium.org2013-02-122-38/+9
| | | | | | | | | | | | This is mostly the Interceptor logic which is now unused. Also switch DebugDevToolsInterceptor (the last remaining Interceptor) to a ProtocolHandler. BUG=146602,161529 Review URL: https://chromiumcodereview.appspot.com/12217095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182016 0039d316-1c4b-4281-b951-d872f2087c98
* Rename FilePath -> base::FilePath in various toplevel directoriesbrettw@chromium.org2013-02-106-18/+18
| | | | | | Review URL: https://codereview.chromium.org/12211108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181639 0039d316-1c4b-4281-b951-d872f2087c98
* Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. pauljensen@chromium.org2013-02-086-83/+271
| | | | | | | | | | | Previously they were added later which doesn't mesh with pending URLRequestJobFactory API changes. BUG=146602,161529 Review URL: https://chromiumcodereview.appspot.com/11308362 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181519 0039d316-1c4b-4281-b951-d872f2087c98
* [android_webview] Make it possible to install downloaded certificates.michaelbai@chromium.org2013-02-062-0/+17
| | | | | | | | | | | | | This makes it possible for a certificate download to trigger an intent (via the StoreCertficiate call) which in turn allows the user to choose to install the certificate on the device. BUG=b/6385441 TEST=None Review URL: https://chromiumcodereview.appspot.com/12138003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180980 0039d316-1c4b-4281-b951-d872f2087c98
* Add FilePath to base namespace.brettw@chromium.org2013-02-022-2/+2
| | | | | | | This updates headers that forward-declare it and a few random places to use the namespace explicitly. There us a using declaration in file_path.h that makes the rest compile, which we can do in future passes. Review URL: https://codereview.chromium.org/12163003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180245 0039d316-1c4b-4281-b951-d872f2087c98
* Only trigger onReceivedLoginRequest on main framesboliu@chromium.org2013-01-311-16/+16
| | | | | | | | | | | | | This matches WebViewClassic behavior. BUG= TBR=mkosiba@chromium.org Android only change. Ran through android try bots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12130003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180004 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement the capture picture API.leandrogracia@chromium.org2013-01-302-0/+31
| | | | | | | | BUG=167908 Review URL: https://chromiumcodereview.appspot.com/11823027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179693 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView scale hit test coordinatesboliu@chromium.org2013-01-301-1/+2
| | | | | | | | | | | | | | WebKit::WebView uses density independent pixels and the android view system uses real screen pixels. Need to convert between the two for performing webkit hit tests. BUG=172791 Android only change. Ran through android bots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12082056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179548 0039d316-1c4b-4281-b951-d872f2087c98
* Android webview fix visited linkboliu@chromium.org2013-01-303-7/+1
| | | | | | | | | | | | | | FrameNavigateParams::base_url is empty most of the time. Plus also adding all redirect URLs to the history to match chrome behavior. BUG= TBR=mkosiba@chromium.org Android only change. Ran through android trybots NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12050007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179481 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView visited link highlighting implementationboliu@chromium.org2013-01-257-1/+95
| | | | | | | | | | | | | Hooking up visited link component, but still need to hook up initialization with WebChromeClient.getVisitedHistory. This means currently, visited links are not persistend or repopulated from but should work in a single browsing session. BUG= Review URL: https://chromiumcodereview.appspot.com/11860014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178748 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up WebViewClient.onReceivedLoginRequestboliu@chromium.org2013-01-234-5/+52
| | | | | | | | | | | | | | | | Straightforward implementation: Parse the x-auto-login header to retrieve the relevant information, and plumb that back up to the ui thread through IoThreadClient and to the AwContentsClient. Had to add an realm_restriction option since Android WebView callback supports any realm/domain. TBR=bulach@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/12011002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178418 0039d316-1c4b-4281-b951-d872f2087c98
* Move content/components/navigation_interception to src/componentskaiwang@chromium.org2013-01-232-2/+3
| | | | | | | | BUG=169312 Review URL: https://chromiumcodereview.appspot.com/11830043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178238 0039d316-1c4b-4281-b951-d872f2087c98
* Implements onReceivedIconacleung@chromium.org2013-01-222-0/+130
| | | | | | | | | | | | | | | | | | This patch implements both WebChromeClient.onReceivedIcon and WebView.getFavIcon, and provides most the support for WebChromeClient.onReceivedTouchIcon. It also includes instrumentation tests for onReceivedIcon. What is still missing: Ability to turn it on and off. TouchIcon currently isn't working. Navigation history is not updated as of this patch. BUG= Review URL: https://chromiumcodereview.appspot.com/11575022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178158 0039d316-1c4b-4281-b951-d872f2087c98
* Move OpenItem/ShowItemInFolder from ContentBrowserClient to ↵hashimoto@chromium.org2013-01-212-10/+0
| | | | | | | | | | | | | | | | | | DownloadManagerDelegate ChromeDownloadManagerDelegate provides Profile which can be used to perform drive file operations. MockDownloadOpenForTesting is moved from DownloadItem to DownloadManager. Rename DownloadManager::DownloadOpened to OpenDownload. Add DownloadManager::ShowDownloadInShell. BUG=154713 TEST=git try TBR=joth@chromium.org for android_webview Review URL: https://chromiumcodereview.appspot.com/11941015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177920 0039d316-1c4b-4281-b951-d872f2087c98
* Fix getting mime-type from a download request.boliu@chromium.org2013-01-151-1/+1
| | | | | | | | | | | | The header is "Content-Type". "Mime-Type" is not a standard header. BUG= Android only change. Ran through android bots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11880028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176759 0039d316-1c4b-4281-b951-d872f2087c98
* Implementing native chromium GeolocationPermissionContextkristianm@chromium.org2013-01-104-10/+25
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11763002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176032 0039d316-1c4b-4281-b951-d872f2087c98
* Return false in AwWebContentsDelegate::CanDownloadnileshagrawal@chromium.org2013-01-091-5/+1
| | | | | | | | | | | Android webview intercepts download in its resource dispatcher host delegate BUG= Review URL: https://chromiumcodereview.appspot.com/11821011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175708 0039d316-1c4b-4281-b951-d872f2087c98
* Fix hang in Android WebView release build testsboliu@chromium.org2013-01-081-3/+2
| | | | | | | | | | | | | | | | | | | | | SurfaceTexture.detachFromGLContext is not present in ICS and the old workaround of using a NullCompositor lead to the test creating TextureImageTransportSurface in ImageTransportSurface::CreateSurface. This path is wrong and not well tested in single-process mode and recently lead to a deadlock hang in release build only tests (see bug). Fixed by creating the real compositor but just avoid calling the missing method in ICS. The Java method is loaded lazily so this does not cause an error at run time. BUG=167236,161864 Android only change. Ran through Android trybots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11787031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175480 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Prepare to simulate SW rendering with the capture picture ↵leandrogracia@chromium.org2013-01-042-5/+26
| | | | | | | | | | | | | API backend. Introduce the required code to get SW rendering working once RenderView is able to provide the required picture piles from the compositor. BUG=167913 Review URL: https://codereview.chromium.org/11727005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175135 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded browser_thread.h includes in contents.thestig@chromium.org2013-01-031-1/+5
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11618049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174922 0039d316-1c4b-4281-b951-d872f2087c98
* Convert AwRequestInerceptor to net::URLRequestJobFactory::ProtocolHandlerpauljensen@chromium.org2013-01-023-37/+10
| | | | | | | | | BUG=161534 Review URL: https://chromiumcodereview.appspot.com/11678008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174807 0039d316-1c4b-4281-b951-d872f2087c98
* Tell java side when the native auth handler is gonejoth@chromium.org2012-12-262-4/+20
| | | | | | | | | | | | | | This is to stop the app keeping and using a reference to the native class after it was deleted. Also fixed up the destructor chain threading, to delete the auth handler on the UI thread. BUG= Review URL: https://chromiumcodereview.appspot.com/11661013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174633 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Count the number of HTTP auth attempts we make.benm@chromium.org2012-12-213-10/+31
| | | | | | | | | | | | | Add a user data key to UrlRequests requiring HTTP auth in the Android WebView. This is used to implement the Android HttpAuthHandler.useHttpAuthUsernamePassword API. Android only change and android bots are green. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11663006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174436 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Fix some locale related TODOs.benm@chromium.org2012-12-212-10/+12
| | | | | | | | | | | | | | | | | | | | Implement AwContentBrowserClient::GetAcceptLangs as the classic WebView did - use the current local for the primary accept language and append en-US as an alternative if the primary language was something else. Use UTF-8 as the default accept charset. As far as I can tell AwContentBrowserClient::GetCanonicalEncodingNameByAliasName should simply echo the passed in string - we shouldn't get passed anything other than a canonical encoding name in android_webview/. Move the mapping of Android deprecated language codes from l10n_util.cc into base/android/java/.../LocaleUtils.java to make that logic easier to reuse by android_webview. Review URL: https://chromiumcodereview.appspot.com/11614002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174385 0039d316-1c4b-4281-b951-d872f2087c98
* Fix aw unittestsboliu@chromium.org2012-12-211-0/+5
| | | | | | | | | | | | | | | | They were broken in r174174 but since these tests are not run on the cq or main waterfall, they were broken and no one noticed for awhile. R=joth@chromium.org,mkosiba@chromium.org BUG= Android only change. Ran through Android bots NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11637052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174308 0039d316-1c4b-4281-b951-d872f2087c98
* Convert trivial URLRequest::Interceptors and ↵pauljensen@chromium.org2012-12-203-9/+13
| | | | | | | | | | URLRequestJobFactory::Interceptor into URLRequestJobFactory::ProtocolHandlers. BUG=161524 Review URL: https://codereview.chromium.org/11293252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174174 0039d316-1c4b-4281-b951-d872f2087c98
* Add file browser handler resource throttler for intercepting downloads.tbarzic@chromium.org2012-12-182-0/+2
| | | | | | | | | | | | | | | The throttle will intercept requests with MIME types handleable by quick office extension, cancel them and send an event to the quick office extension to handle the request. BUG=162736 TEST=unit_tests:FileBrowserResourceThrotlleTest; browser_tests:FileBrowserResourceThrottleExtensionApiTest Review URL: https://chromiumcodereview.appspot.com/11280264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173713 0039d316-1c4b-4281-b951-d872f2087c98
* Change Android Webview URL Request Context access of mutation functions.tedv@chromium.org2012-12-162-8/+9
| | | | | | | | | | | | | | | The associated CR involves moving mutation interfaces of URLRequestJobFactory to derived (non-abstract) classes. See CL https://codereview.chromium.org/11227017 for more information. BUG=146602 Review URL: https://chromiumcodereview.appspot.com/11447032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173392 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Convert context menu callback to long pressboliu@chromium.org2012-12-112-2/+18
| | | | | | | | | | | | A GestureLongPress is converted to a context menu callback inside WebKit. For Android WebView, use this callback to trigger the long click logic which by default triggers context menu. BUG= Android only change. Ran through android trybots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11471040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172457 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Rename android_webview paks to webviewchromium.benm@chromium.org2012-12-071-2/+2
| | | | | | | | | | Android bots green. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11475035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171876 0039d316-1c4b-4281-b951-d872f2087c98