| 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 <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "content/child/web_url_loader_impl.h" | 12 #include "content/child/web_url_loader_impl.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/common/navigation_params.h" | 14 #include "content/common/navigation_params.h" |
| 15 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 15 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 16 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
| 17 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 17 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 18 #include "ui/base/page_transition_types.h" | 18 #include "ui/base/page_transition_types.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 // Can be used by callers to store extra data on every ResourceRequest | 22 // Can be used by callers to store extra data on every ResourceRequest |
| 23 // which will be incorporated into the ResourceHostMsg_Request message | 23 // which will be incorporated into the ResourceHostMsg_RequestResource message |
| 24 // sent by ResourceDispatcher. | 24 // sent by ResourceDispatcher. |
| 25 class CONTENT_EXPORT RequestExtraData | 25 class CONTENT_EXPORT RequestExtraData |
| 26 : public NON_EXPORTED_BASE(blink::WebURLRequest::ExtraData) { | 26 : public NON_EXPORTED_BASE(blink::WebURLRequest::ExtraData) { |
| 27 public: | 27 public: |
| 28 RequestExtraData(); | 28 RequestExtraData(); |
| 29 ~RequestExtraData() override; | 29 ~RequestExtraData() override; |
| 30 | 30 |
| 31 blink::WebPageVisibilityState visibility_state() const { | 31 blink::WebPageVisibilityState visibility_state() const { |
| 32 return visibility_state_; | 32 return visibility_state_; |
| 33 } | 33 } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 blink::WebString requested_with_; | 150 blink::WebString requested_with_; |
| 151 std::unique_ptr<StreamOverrideParameters> stream_override_; | 151 std::unique_ptr<StreamOverrideParameters> stream_override_; |
| 152 LoFiState lofi_state_; | 152 LoFiState lofi_state_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 154 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace content | 157 } // namespace content |
| 158 | 158 |
| 159 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 159 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| OLD | NEW |