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

Unified Diff: content/public/renderer/navigation_state.h

Issue 9808029: Prepending view-source: does not load the source of the userscript. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: allow_download_(true) Created 8 years, 8 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/renderer/navigation_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/navigation_state.h
diff --git a/content/public/renderer/navigation_state.h b/content/public/renderer/navigation_state.h
index cb6bc64208028a8476ddb7d4feea5af84486b9da..f33e515d9793379c28cf28697c229aed011ae5ba 100644
--- a/content/public/renderer/navigation_state.h
+++ b/content/public/renderer/navigation_state.h
@@ -73,6 +73,12 @@ class NavigationState {
int transferred_request_request_id() const {
return transferred_request_request_id_;
}
+ void set_allow_download(bool value) {
+ allow_download_ = value;
+ }
+ bool allow_download() const {
+ return allow_download_;
+ }
private:
NavigationState(content::PageTransition transition_type,
@@ -89,6 +95,7 @@ class NavigationState {
bool was_within_same_page_;
int transferred_request_child_id_;
int transferred_request_request_id_;
+ bool allow_download_;
DISALLOW_COPY_AND_ASSIGN(NavigationState);
};
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/renderer/navigation_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698