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

Unified Diff: content/public/test/mock_render_thread.h

Issue 23455047: InstantExtended: Send search URLs to renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More browsertest fixes Created 7 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 | « content/public/renderer/content_renderer_client.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_thread.h
diff --git a/content/public/test/mock_render_thread.h b/content/public/test/mock_render_thread.h
index 022dbb9ce9bba32b0c824ff8840d0e9e401cd165..c0c70391aa2456c9b5f13f16aa9fdcb4f14edada 100644
--- a/content/public/test/mock_render_thread.h
+++ b/content/public/test/mock_render_thread.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
#include "base/memory/shared_memory.h"
+#include "base/observer_list.h"
#include "base/strings/string16.h"
#include "content/public/renderer/render_thread.h"
#include "ipc/ipc_test_sink.h"
@@ -109,6 +110,9 @@ class MockRenderThread : public RenderThread {
// overriding this should first delegate to this implementation.
virtual bool OnMessageReceived(const IPC::Message& msg);
+ // Dispatches control messages to observers.
+ bool OnControlMessageReceived(const IPC::Message& msg);
+
// The Widget expects to be returned valid route_id.
void OnCreateWidget(int opener_id,
WebKit::WebPopupType popup_type,
@@ -155,6 +159,9 @@ class MockRenderThread : public RenderThread {
// A list of message filters added to this thread.
std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_;
+
+ // Observers to notify.
+ ObserverList<RenderProcessObserver> observers_;
};
} // namespace content
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698