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

Unified Diff: android_webview/browser/aw_contents_io_thread_client.h

Issue 11348075: [Android WebView] AwContentsClient.shouldCreate window callback part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Marcin's comments. Created 8 years, 1 month 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/browser/aw_contents_io_thread_client.h
diff --git a/android_webview/browser/aw_contents_io_thread_client.h b/android_webview/browser/aw_contents_io_thread_client.h
index 0dd414623db006fad9cc079441187f97612fc37a..d6a1111a8b5e448f63b456b61469a535fcd5b547 100644
--- a/android_webview/browser/aw_contents_io_thread_client.h
+++ b/android_webview/browser/aw_contents_io_thread_client.h
@@ -43,6 +43,19 @@ class AwContentsIoThreadClient {
static scoped_ptr<AwContentsIoThreadClient> FromID(int render_process_id,
int render_view_id);
+ // Notifies registered observers when an AwIoThreadClient is registerd
+ // for the specified |child_id| and |route_id|. Invoked on the thread
+ // that the Observer was registered on.
+ class ReadyObserver {
+ public:
+ virtual void OnIoThreadClientReady(int child_id, int route_id) = 0;
joth 2012/11/16 21:52:57 protected virtual d'tor.
benm (inactive) 2012/11/28 20:00:05 Done.
+ };
+
+ // Add/remove an observer that will be notified as AwIoThreadClients
+ // are registered.
+ static void AddReadyObserver(ReadyObserver* obs);
+ static void RemoveReadyObserver(ReadyObserver* obs);
joth 2012/11/16 21:52:57 document which thread these must be called on, and
benm (inactive) 2012/11/28 20:00:05 Would do, but I think I'm going to go with your su
+
// This method is called on the IO thread only.
virtual scoped_ptr<InterceptedRequestData> ShouldInterceptRequest(
const GURL& location,

Powered by Google App Engine
This is Rietveld 408576698