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" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 int transferred_request_request_id) { | 78 int transferred_request_request_id) { |
79 transferred_request_request_id_ = transferred_request_request_id; | 79 transferred_request_request_id_ = transferred_request_request_id; |
80 } | 80 } |
81 int service_worker_provider_id() const { | 81 int service_worker_provider_id() const { |
82 return service_worker_provider_id_; | 82 return service_worker_provider_id_; |
83 } | 83 } |
84 void set_service_worker_provider_id( | 84 void set_service_worker_provider_id( |
85 int service_worker_provider_id) { | 85 int service_worker_provider_id) { |
86 service_worker_provider_id_ = service_worker_provider_id; | 86 service_worker_provider_id_ = service_worker_provider_id; |
87 } | 87 } |
88 bool skip_service_worker() const { return skip_service_worker_; } | |
89 void set_skip_service_worker(bool skip_service_worker) { | |
90 skip_service_worker_ = skip_service_worker; | |
91 } | |
92 // |custom_user_agent| is used to communicate an overriding custom user agent | 88 // |custom_user_agent| is used to communicate an overriding custom user agent |
93 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no | 89 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no |
94 // override and an empty string to indicate that there should be no user | 90 // override and an empty string to indicate that there should be no user |
95 // agent. | 91 // agent. |
96 const blink::WebString& custom_user_agent() const { | 92 const blink::WebString& custom_user_agent() const { |
97 return custom_user_agent_; | 93 return custom_user_agent_; |
98 } | 94 } |
99 void set_custom_user_agent(const blink::WebString& custom_user_agent) { | 95 void set_custom_user_agent(const blink::WebString& custom_user_agent) { |
100 custom_user_agent_ = custom_user_agent; | 96 custom_user_agent_ = custom_user_agent; |
101 } | 97 } |
(...skipping 10 matching lines...) Expand all Loading... |
112 bool is_main_frame_; | 108 bool is_main_frame_; |
113 GURL frame_origin_; | 109 GURL frame_origin_; |
114 bool parent_is_main_frame_; | 110 bool parent_is_main_frame_; |
115 int parent_render_frame_id_; | 111 int parent_render_frame_id_; |
116 bool allow_download_; | 112 bool allow_download_; |
117 PageTransition transition_type_; | 113 PageTransition transition_type_; |
118 bool should_replace_current_entry_; | 114 bool should_replace_current_entry_; |
119 int transferred_request_child_id_; | 115 int transferred_request_child_id_; |
120 int transferred_request_request_id_; | 116 int transferred_request_request_id_; |
121 int service_worker_provider_id_; | 117 int service_worker_provider_id_; |
122 bool skip_service_worker_; | |
123 blink::WebString custom_user_agent_; | 118 blink::WebString custom_user_agent_; |
124 blink::WebString requested_with_; | 119 blink::WebString requested_with_; |
125 | 120 |
126 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 121 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
127 }; | 122 }; |
128 | 123 |
129 } // namespace content | 124 } // namespace content |
130 | 125 |
131 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 126 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
OLD | NEW |