| 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 bf365262ec0d1eac15607fc68a2d5171ee5e58c0..d31fc26ef72da053f982a70632b6b67f445954e6 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"
|
| @@ -365,6 +366,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);
|
| @@ -725,6 +732,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_;
|
|
|
|
|