OLD | NEW |
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_ |
OLD | NEW |