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

Unified Diff: chrome/renderer/mock_render_thread.h

Issue 6242010: Refactor away most of ExtensionRendererInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 11 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 | « chrome/renderer/localized_error.cc ('k') | chrome/renderer/mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/mock_render_thread.h
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h
index e127184f95f1fd7f4c19a63e36d7a5a420e820ab..551f77a7a89cb17f7933734bbb70f39d86587f80 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_;
};
« no previous file with comments | « chrome/renderer/localized_error.cc ('k') | chrome/renderer/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698