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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: content/browser/renderer_host/mock_render_process_host.h
===================================================================
--- content/browser/renderer_host/mock_render_process_host.h (revision 110303)
+++ content/browser/renderer_host/mock_render_process_host.h (working copy)
@@ -8,7 +8,8 @@
#include "base/basictypes.h"
#include "base/memory/scoped_vector.h"
-#include "content/browser/renderer_host/render_process_host.h"
+#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/render_process_host_factory.h"
#include "ipc/ipc_test_sink.h"
class MockRenderProcessHostFactory;
@@ -46,12 +47,31 @@
virtual int VisibleWidgetCount() const;
virtual void AddWord(const string16& word);
virtual bool FastShutdownIfPossible();
+ virtual bool FastShutdownStarted() const;
virtual void DumpHandles();
virtual base::ProcessHandle GetHandle();
virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id);
virtual void SetCompositingSurface(
int render_widget_id,
gfx::PluginWindowHandle compositing_surface);
+ virtual int GetID() const;
+ virtual bool HasConnection() const;
+ virtual void SetIgnoreInputEvents(bool ignore_input_events);
+ virtual bool IgnoreInputEvents() const;
+ virtual void Attach(IPC::Channel::Listener* listener, int routing_id);
+ virtual void Release(int listener_id);
+ virtual void Cleanup();
+ virtual void ReportExpectingClose(int32 listener_id);
+ virtual void AddPendingView();
+ virtual void RemovePendingView();
+ virtual void SetSuddenTerminationAllowed(bool allowed);
+ virtual bool SuddenTerminationAllowed() const;
+ virtual void UpdateMaxPageID(int32 page_id);
+ virtual IPC::Channel::Listener* GetListenerByID(int routing_id);
+ virtual content::BrowserContext* GetBrowserContext() const;
+ virtual IPC::ChannelProxy* GetChannel();
+ virtual listeners_iterator ListenersIterator();
+ virtual bool FastShutdownForPageCount(size_t count);
// IPC::Channel::Sender via RenderProcessHost.
virtual bool Send(IPC::Message* msg);
@@ -72,7 +92,13 @@
TransportDIB* transport_dib_;
int bad_msg_count_;
const MockRenderProcessHostFactory* factory_;
+ int id_;
+ content::BrowserContext* browser_context_;
+ int32 max_page_id_;
+ IDMap<IPC::Channel::Listener> listeners_;
+ bool fast_shutdown_started_;
+
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
};

Powered by Google App Engine
This is Rietveld 408576698