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

Unified Diff: content/common/request_extra_data.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
« no previous file with comments | « content/common/page_transition_types.h ('k') | content/common/request_extra_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/request_extra_data.h
===================================================================
--- content/common/request_extra_data.h (revision 98485)
+++ content/common/request_extra_data.h (working copy)
@@ -6,22 +6,26 @@
#define CONTENT_COMMON_REQUEST_EXTRA_DATA_H_
#pragma once
+#include "content/common/page_transition_types.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
// The RenderView stores an instance of this class in the "extra data" of each
// ResourceRequest (see RenderView::willSendRequest).
class RequestExtraData : public WebKit::WebURLRequest::ExtraData {
public:
- RequestExtraData(bool is_main_frame, int64 frame_identifier);
+ RequestExtraData(bool is_main_frame,
+ int64 frame_id,
+ PageTransition::Type transition_type);
virtual ~RequestExtraData();
bool is_main_frame() const { return is_main_frame_; }
+ int64 frame_id() const { return frame_id_; }
+ PageTransition::Type transition_type() const { return transition_type_; }
- int64 frame_identifier() const { return frame_identifier_; }
-
private:
bool is_main_frame_;
- int64 frame_identifier_;
+ int64 frame_id_;
+ PageTransition::Type transition_type_;
DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
};
« no previous file with comments | « content/common/page_transition_types.h ('k') | content/common/request_extra_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698