| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHILD_REQUEST_EXTRA_DATA_H_ | 5 #ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| 6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/common/page_transition_types.h" | 10 #include "content/public/common/page_transition_types.h" |
| 11 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 11 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
| 12 #include "webkit/child/weburlrequest_extradata_impl.h" | 12 #include "webkit/child/weburlrequest_extradata_impl.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // The RenderView stores an instance of this class in the "extra data" of each | 16 // The RenderView stores an instance of this class in the "extra data" of each |
| 17 // ResourceRequest (see RenderFrameImpl::willSendRequest). | 17 // ResourceRequest (see RenderFrameImpl::willSendRequest). |
| 18 class CONTENT_EXPORT RequestExtraData | 18 class CONTENT_EXPORT RequestExtraData |
| 19 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) { | 19 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) { |
| 20 public: | 20 public: |
| 21 RequestExtraData(blink::WebReferrerPolicy referrer_policy, | 21 RequestExtraData(blink::WebPageVisibilityState visibility_state, |
| 22 blink::WebPageVisibilityState visibility_state, | |
| 23 const blink::WebString& custom_user_agent, | 22 const blink::WebString& custom_user_agent, |
| 24 bool was_after_preconnect_request, | 23 bool was_after_preconnect_request, |
| 25 int render_frame_id, | 24 int render_frame_id, |
| 26 bool is_main_frame, | 25 bool is_main_frame, |
| 27 int64 frame_id, | 26 int64 frame_id, |
| 28 const GURL& frame_origin, | 27 const GURL& frame_origin, |
| 29 bool parent_is_main_frame, | 28 bool parent_is_main_frame, |
| 30 int64 parent_frame_id, | 29 int64 parent_frame_id, |
| 31 bool allow_download, | 30 bool allow_download, |
| 32 PageTransition transition_type, | 31 PageTransition transition_type, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool should_replace_current_entry_; | 68 bool should_replace_current_entry_; |
| 70 int transferred_request_child_id_; | 69 int transferred_request_child_id_; |
| 71 int transferred_request_request_id_; | 70 int transferred_request_request_id_; |
| 72 | 71 |
| 73 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 72 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 } // namespace content | 75 } // namespace content |
| 77 | 76 |
| 78 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 77 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| OLD | NEW |