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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/page_transition_types.h ('k') | content/common/request_extra_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_REQUEST_EXTRA_DATA_H_ 5 #ifndef CONTENT_COMMON_REQUEST_EXTRA_DATA_H_
6 #define CONTENT_COMMON_REQUEST_EXTRA_DATA_H_ 6 #define CONTENT_COMMON_REQUEST_EXTRA_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/common/page_transition_types.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
10 11
11 // The RenderView stores an instance of this class in the "extra data" of each 12 // The RenderView stores an instance of this class in the "extra data" of each
12 // ResourceRequest (see RenderView::willSendRequest). 13 // ResourceRequest (see RenderView::willSendRequest).
13 class RequestExtraData : public WebKit::WebURLRequest::ExtraData { 14 class RequestExtraData : public WebKit::WebURLRequest::ExtraData {
14 public: 15 public:
15 RequestExtraData(bool is_main_frame, int64 frame_identifier); 16 RequestExtraData(bool is_main_frame,
17 int64 frame_id,
18 PageTransition::Type transition_type);
16 virtual ~RequestExtraData(); 19 virtual ~RequestExtraData();
17 20
18 bool is_main_frame() const { return is_main_frame_; } 21 bool is_main_frame() const { return is_main_frame_; }
19 22 int64 frame_id() const { return frame_id_; }
20 int64 frame_identifier() const { return frame_identifier_; } 23 PageTransition::Type transition_type() const { return transition_type_; }
21 24
22 private: 25 private:
23 bool is_main_frame_; 26 bool is_main_frame_;
24 int64 frame_identifier_; 27 int64 frame_id_;
28 PageTransition::Type transition_type_;
25 29
26 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); 30 DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
27 }; 31 };
28 32
29 #endif // CONTENT_COMMON_REQUEST_EXTRA_DATA_H_ 33 #endif // CONTENT_COMMON_REQUEST_EXTRA_DATA_H_
OLDNEW
« 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