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