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

Unified Diff: android_webview/native/cookie_manager.cc

Issue 10941015: [Android] Upstream the WebView find-in-page API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes. Created 8 years, 3 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: android_webview/native/cookie_manager.cc
diff --git a/android_webview/native/cookie_manager.cc b/android_webview/native/cookie_manager.cc
index fbbfc06b1683302284e54fbfc15775d09ad27baf..d4b6619f2923eeb2e7d9a34a1061dd43450fe256 100644
--- a/android_webview/native/cookie_manager.cc
+++ b/android_webview/native/cookie_manager.cc
@@ -5,6 +5,7 @@
#include "android_webview/native/cookie_manager.h"
#include "android_webview/browser/aw_cookie_access_policy.h"
+#include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
#include "android_webview/native/aw_browser_dependency_factory.h"
#include "base/android/jni_string.h"
#include "base/bind.h"
@@ -26,16 +27,6 @@ using net::CookieList;
using net::CookieMonster;
using net::URLRequestContextGetter;
-// This class is only available when building the chromium back-end for andriod
-// webview: it is required where API backward compatibility demands that the UI
-// thread must block waiting on other threads e.g. to obtain a synchronous
-// return value. Long term, asynchronous overloads of all such methods will be
-// added in the public API, and and no new uses of this will be allowed.
-class ScopedAllowWaitForLegacyWebViewApi {
- private:
- base::ThreadRestrictions::ScopedAllowWait wait;
-};
-
// CookieManager should be refactored to not require all tasks accessing the
// CookieStore to be piped through the IO thread. It is currently required as
// the URLRequestContext provides the easiest mechanism for accessing the
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.cc ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698