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/child/web_url_loader_impl.h" | 9 #include "content/child/web_url_loader_impl.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
11 #include "third_party/WebKit/public/platform/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 13 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
13 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | |
14 #include "ui/base/page_transition_types.h" | 14 #include "ui/base/page_transition_types.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 // Can be used by callers to store extra data on every ResourceRequest | 18 // Can be used by callers to store extra data on every ResourceRequest |
19 // which will be incorporated into the ResourceHostMsg_Request message | 19 // which will be incorporated into the ResourceHostMsg_Request message |
20 // sent by ResourceDispatcher. | 20 // sent by ResourceDispatcher. |
21 class CONTENT_EXPORT RequestExtraData | 21 class CONTENT_EXPORT RequestExtraData |
22 : public NON_EXPORTED_BASE(blink::WebURLRequest::ExtraData) { | 22 : public NON_EXPORTED_BASE(blink::WebURLRequest::ExtraData) { |
23 public: | 23 public: |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 blink::WebString custom_user_agent_; | 130 blink::WebString custom_user_agent_; |
131 blink::WebString requested_with_; | 131 blink::WebString requested_with_; |
132 scoped_ptr<StreamOverrideParameters> stream_override_; | 132 scoped_ptr<StreamOverrideParameters> stream_override_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 134 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace content | 137 } // namespace content |
138 | 138 |
139 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 139 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
OLD | NEW |