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

Unified Diff: android_webview/native/aw_contents_io_thread_client_impl.h

Issue 1544863002: [Android WebView] Implement initial settings and callback support for Service Workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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/aw_contents_io_thread_client_impl.h
diff --git a/android_webview/native/aw_contents_io_thread_client_impl.h b/android_webview/native/aw_contents_io_thread_client_impl.h
index 1df03ca4b6e77a683c88a80f285068b10f0ead77..e90375d1584097d17bb1f02fb028510ee8820232 100644
--- a/android_webview/native/aw_contents_io_thread_client_impl.h
+++ b/android_webview/native/aw_contents_io_thread_client_impl.h
@@ -40,6 +40,12 @@ class AwContentsIoThreadClientImpl : public AwContentsIoThreadClient {
static void Associate(content::WebContents* web_contents,
const base::android::JavaRef<jobject>& jclient);
+ // Sets the |jclient| java instance to which service worker related
+ // callbacks should be delegated.
+ static void SetServiceWorkerIoThreadClient(
+ const base::android::JavaRef<jobject>& jclient,
+ const base::android::JavaRef<jobject>& browser_context);
+
// Either |pending_associate| is true or |jclient| holds a non-null
// Java object.
AwContentsIoThreadClientImpl(bool pending_associate,

Powered by Google App Engine
This is Rietveld 408576698