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

Side by Side Diff: android_webview/browser/aw_contents_io_thread_client.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 unified diff | Download patch
« no previous file with comments | « no previous file | android_webview/browser/net/aw_request_interceptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // This method is called on the IO thread only. 59 // This method is called on the IO thread only.
60 virtual CacheMode GetCacheMode() const = 0; 60 virtual CacheMode GetCacheMode() const = 0;
61 61
62 // This will attempt to fetch the AwContentsIoThreadClient for the given 62 // This will attempt to fetch the AwContentsIoThreadClient for the given
63 // |render_process_id|, |render_frame_id| pair. 63 // |render_process_id|, |render_frame_id| pair.
64 // This method can be called from any thread. 64 // This method can be called from any thread.
65 // An empty scoped_ptr is a valid return value. 65 // An empty scoped_ptr is a valid return value.
66 static scoped_ptr<AwContentsIoThreadClient> FromID(int render_process_id, 66 static scoped_ptr<AwContentsIoThreadClient> FromID(int render_process_id,
67 int render_frame_id); 67 int render_frame_id);
68 68
69 // Returns the global thread client for service worker related callbacks.
70 // An empty scoped_ptr is a valid return value.
71 static scoped_ptr<AwContentsIoThreadClient> GetServiceWorkerIoThreadClient();
72
69 // Called on the IO thread when a subframe is created. 73 // Called on the IO thread when a subframe is created.
70 static void SubFrameCreated(int render_process_id, 74 static void SubFrameCreated(int render_process_id,
71 int parent_render_frame_id, 75 int parent_render_frame_id,
72 int child_render_frame_id); 76 int child_render_frame_id);
73 77
74 // This method is called on the IO thread only. 78 // This method is called on the IO thread only.
75 typedef base::Callback<void(scoped_ptr<AwWebResourceResponse>)> 79 typedef base::Callback<void(scoped_ptr<AwWebResourceResponse>)>
76 ShouldInterceptRequestResultCallback; 80 ShouldInterceptRequestResultCallback;
77 virtual void ShouldInterceptRequestAsync( 81 virtual void ShouldInterceptRequestAsync(
78 const net::URLRequest* request, 82 const net::URLRequest* request,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 119
116 // Called when a response from the server is received with status code >= 400. 120 // Called when a response from the server is received with status code >= 400.
117 virtual void OnReceivedHttpError( 121 virtual void OnReceivedHttpError(
118 const net::URLRequest* request, 122 const net::URLRequest* request,
119 const net::HttpResponseHeaders* response_headers) = 0; 123 const net::HttpResponseHeaders* response_headers) = 0;
120 }; 124 };
121 125
122 } // namespace android_webview 126 } // namespace android_webview
123 127
124 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 128 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/aw_request_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698