| Index: chrome/browser/renderer_host/render_view_host.h
|
| diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
|
| index a113e1e6d24f974b9cda111c5ffdd6962628b9e7..2fc0333e26ef9878ee93cc3f4badbd26768bf2d9 100644
|
| --- a/chrome/browser/renderer_host/render_view_host.h
|
| +++ b/chrome/browser/renderer_host/render_view_host.h
|
| @@ -14,6 +14,7 @@
|
| #include "chrome/browser/renderer_host/render_widget_host.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/translate_errors.h"
|
| #include "chrome/common/view_types.h"
|
| @@ -358,6 +359,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* app) {
|
| + installed_app_ = app;
|
| + }
|
| +
|
| // Sets a property with the given name and value on the DOM UI binding object.
|
| // Must call AllowDOMUIBindings() on this renderer first.
|
| void SetDOMUIProperty(const std::string& name, const std::string& value);
|
| @@ -774,6 +781,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_;
|
|
|
|
|