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

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: Update cookie logic in test. 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 5278eff06799502e4d201ccd232a80f5253bb980..19a65ef81552a03786db17c44d0f81fd765fadda 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"
@@ -364,6 +365,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);
@@ -782,6 +789,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