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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

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
« no previous file with comments | « android_webview/native/cookie_manager.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 919115addebd1235ce807abf1cfa5207785140f2..d28a69c7428323c3fdd678115314be176dfcc3e2 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/process.h"
+#include "base/synchronization/waitable_event.h"
#include "base/timer.h"
#include "content/browser/child_process_launcher.h"
#include "content/common/content_export.h"
@@ -293,6 +294,15 @@ class CONTENT_EXPORT RenderProcessHostImpl
// Records the last time we regarded the child process active.
base::TimeTicks child_process_activity_time_;
+#if defined(OS_ANDROID)
+ // Android WebView needs to use a SyncChannel to block the browser process
+ // for synchronous find-in-page API support. In that case the shutdown event
+ // makes no sense as the Android port doesn't shutdown, but gets killed.
+ // SyncChannel still expects a shutdown event, so create a dummy one that
+ // will never will be signaled.
+ base::WaitableEvent dummy_shutdown_event_;
+#endif
+
// Indicates whether this is a RenderProcessHost of a Browser Plugin guest
// renderer.
bool is_guest_;
« no previous file with comments | « android_webview/native/cookie_manager.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698