Index: content/browser/renderer_host/render_view_host.h |
diff --git a/content/browser/renderer_host/render_view_host.h b/content/browser/renderer_host/render_view_host.h |
index cc3bfacac8fe5aa5a76f6fe00120b2b552e97818..ed8386b19c4ef4dff4ba77e9169ae36272a91d6c 100644 |
--- a/content/browser/renderer_host/render_view_host.h |
+++ b/content/browser/renderer_host/render_view_host.h |
@@ -13,6 +13,7 @@ |
#include "base/scoped_ptr.h" |
#include "chrome/browser/ui/find_bar/find_bar_controller.h" |
#include "chrome/common/content_settings_types.h" |
+#include "chrome/common/extensions/extension.h" |
#include "chrome/common/page_zoom.h" |
#include "chrome/common/render_view_commands.h" |
#include "chrome/common/translate_errors.h" |
@@ -363,6 +364,12 @@ class RenderViewHost : public RenderWidgetHost { |
is_extension_process_ = is_extension_process; |
} |
+ // See variable comment. |
+ const Extension* installed_app() { return installed_app_; } |
+ void set_installed_app(const Extension* installed_app) { |
+ installed_app_ = installed_app; |
+ } |
+ |
// Sets a property with the given name and value on the Web UI binding object. |
// Must call AllowWebUIBindings() on this renderer first. |
void SetWebUIProperty(const std::string& name, const std::string& value); |
@@ -723,6 +730,10 @@ class RenderViewHost : public RenderWidgetHost { |
// what process type we use. |
bool is_extension_process_; |
+ // The Extension object if this is a hosted or packaged app, NULL otherwise. |
+ // This can affect the request context used by the renderer. |
+ scoped_refptr<const Extension> installed_app_; |
+ |
// Whether the accessibility tree should be saved, for unit testing. |
bool save_accessibility_tree_for_testing_; |