diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 18:25:04 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 18:25:04 +0000 |
commit | b8f41a197500eb0d6fbff3e8f1216d99a49b7d07 (patch) | |
tree | dcf08cdca241fce9c8c0775a4ce9b6805363d432 /chrome/renderer/mock_render_thread.h | |
parent | 498dd0c587f7307f7969d487dc25125fda3ca872 (diff) | |
download | chromium_src-b8f41a197500eb0d6fbff3e8f1216d99a49b7d07.zip chromium_src-b8f41a197500eb0d6fbff3e8f1216d99a49b7d07.tar.gz chromium_src-b8f41a197500eb0d6fbff3e8f1216d99a49b7d07.tar.bz2 |
Give chrome-extension frames in regular renderers access to messaging APIs,
but nothing else. This is the chrome-side of webkit bug
https://bugs.webkit.org/show_bug.cgi?id=37681
BUG=37920
Review URL: http://codereview.chromium.org/1663003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_render_thread.h')
-rw-r--r-- | chrome/renderer/mock_render_thread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h index 635174b..8e7d210 100644 --- a/chrome/renderer/mock_render_thread.h +++ b/chrome/renderer/mock_render_thread.h @@ -49,6 +49,9 @@ class MockRenderThread : public RenderThreadBase { virtual void WidgetHidden() { } virtual void WidgetRestored() { } + virtual bool IsExtensionProcess() const { return is_extension_process_; } + void SetExtensionProcess(bool value) { is_extension_process_ = value; } + ////////////////////////////////////////////////////////////////////////// // The following functions are called by the test itself. @@ -125,6 +128,8 @@ class MockRenderThread : public RenderThreadBase { // A mock printer device used for printing tests. scoped_ptr<MockPrinter> printer_; + + bool is_extension_process_; }; #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ |