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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_request_info.h

Issue 7624031: Treat files downloaded from the address bar as "always safe" (including extensions per discussion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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: content/browser/renderer_host/resource_dispatcher_host_request_info.h
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_request_info.h (revision 98485)
+++ content/browser/renderer_host/resource_dispatcher_host_request_info.h (working copy)
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/time.h"
#include "content/common/child_process_info.h"
+#include "content/common/page_transition_types.h"
#include "net/base/load_states.h"
#include "net/url_request/url_request.h"
#include "webkit/glue/resource_type.h"
@@ -45,6 +46,7 @@
bool is_main_frame,
int64 frame_id,
ResourceType::Type resource_type,
+ PageTransition::Type transition_type,
uint64 upload_size,
bool is_download,
bool allow_download,
@@ -130,6 +132,8 @@
// Identifies the type of resource, such as subframe, media, etc.
ResourceType::Type resource_type() const { return resource_type_; }
+ PageTransition::Type transition_type() const { return transition_type_; }
+
// When there is upload data, this is the byte count of that data. When there
// is no upload, this will be 0.
uint64 upload_size() const { return upload_size_; }
@@ -220,6 +224,7 @@
bool has_user_gesture_;
int pause_count_;
ResourceType::Type resource_type_;
+ PageTransition::Type transition_type_;
uint64 upload_size_;
uint64 last_upload_position_;
base::TimeTicks last_upload_ticks_;

Powered by Google App Engine
This is Rietveld 408576698