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 d763b26e260ac07cd3d76a6475dc0f8bdfbcc48e..05c1f5420e6f208b88eedd47d1f2244c575008b3 100644 |
--- a/content/public/test/mock_render_thread.h |
+++ b/content/public/test/mock_render_thread.h |
@@ -102,14 +102,18 @@ class MockRenderThread : public RenderThread { |
// state. |
void SendCloseMessage(); |
+ // Dispatches control messages to observers. |
+ bool OnControlMessageReceived(const IPC::Message& msg); |
+ |
+ ObserverList<RenderProcessObserver>& observers() { |
+ return observers_; |
+ } |
+ |
protected: |
// This function operates as a regular IPC listener. Subclasses |
// 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, |
blink::WebPopupType popup_type, |