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

Side by Side Diff: webkit/glue/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 unified diff | Download patch | Annotate | Revision Log
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 WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_ 5 #ifndef WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_
6 #define WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_ 6 #define WEBKIT_GLUE_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_identifier,
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
20 int64 frame_identifier() const { return frame_identifier_; } 23 int64 frame_identifier() const { return frame_identifier_; }
21 24
25 PageTransition::Type transition_type() const { return transition_type_; }
26
22 private: 27 private:
23 bool is_main_frame_; 28 bool is_main_frame_;
24 int64 frame_identifier_; 29 int64 frame_identifier_;
30 PageTransition::Type transition_type_;
25 31
26 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); 32 DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
27 }; 33 };
28 34
29 #endif // WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_ 35 #endif // WEBKIT_GLUE_REQUEST_EXTRA_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698