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

Unified Diff: chrome/browser/renderer_host/render_view_host.h

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_;

Powered by Google App Engine
This is Rietveld 408576698