summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/mock_render_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/mock_render_thread.h')
-rw-r--r--chrome/renderer/mock_render_thread.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h
index e127184..551f77a 100644
--- a/chrome/renderer/mock_render_thread.h
+++ b/chrome/renderer/mock_render_thread.h
@@ -8,6 +8,7 @@
#include <string>
+#include "chrome/renderer/extensions/extension_renderer_info.h"
#include "chrome/renderer/mock_printer.h"
#include "chrome/renderer/render_thread.h"
#include "ipc/ipc_test_sink.h"
@@ -30,6 +31,8 @@ class MockRenderThread : public RenderThreadBase {
MockRenderThread();
virtual ~MockRenderThread();
+ virtual const ExtensionRendererInfo* GetExtensions() const;
+
// Provides access to the messages that have been received by this thread.
IPC::TestSink& sink() { return sink_; }
@@ -139,6 +142,10 @@ class MockRenderThread : public RenderThreadBase {
// A mock printer device used for printing tests.
scoped_ptr<MockPrinter> printer_;
+ // Contains extensions currently loaded by browser. This is usually empty
+ // for MockRenderThread.
+ ExtensionRendererInfo extensions_;
+
bool is_extension_process_;
};