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 "base/time/time.h" |
9 #include "content/child/web_url_loader_impl.h" | 10 #include "content/child/web_url_loader_impl.h" |
10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
11 #include "content/common/navigation_params.h" | 12 #include "content/common/navigation_params.h" |
12 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 13 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
13 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
14 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 15 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
15 #include "ui/base/page_transition_types.h" | 16 #include "ui/base/page_transition_types.h" |
16 | 17 |
17 namespace content { | 18 namespace content { |
18 | 19 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void set_service_worker_provider_id( | 87 void set_service_worker_provider_id( |
87 int service_worker_provider_id) { | 88 int service_worker_provider_id) { |
88 service_worker_provider_id_ = service_worker_provider_id; | 89 service_worker_provider_id_ = service_worker_provider_id; |
89 } | 90 } |
90 LoFiState lofi_state() const { | 91 LoFiState lofi_state() const { |
91 return lofi_state_; | 92 return lofi_state_; |
92 } | 93 } |
93 void set_lofi_state(LoFiState lofi_state) { | 94 void set_lofi_state(LoFiState lofi_state) { |
94 lofi_state_ = lofi_state; | 95 lofi_state_ = lofi_state; |
95 } | 96 } |
| 97 const base::TimeTicks& browser_navigation_start() const { |
| 98 return browser_navigation_start_; |
| 99 } |
| 100 void set_browser_navigation_start( |
| 101 const base::TimeTicks& browser_navigation_start) { |
| 102 browser_navigation_start_ = browser_navigation_start; |
| 103 } |
96 // |custom_user_agent| is used to communicate an overriding custom user agent | 104 // |custom_user_agent| is used to communicate an overriding custom user agent |
97 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no | 105 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no |
98 // override and an empty string to indicate that there should be no user | 106 // override and an empty string to indicate that there should be no user |
99 // agent. | 107 // agent. |
100 const blink::WebString& custom_user_agent() const { | 108 const blink::WebString& custom_user_agent() const { |
101 return custom_user_agent_; | 109 return custom_user_agent_; |
102 } | 110 } |
103 void set_custom_user_agent(const blink::WebString& custom_user_agent) { | 111 void set_custom_user_agent(const blink::WebString& custom_user_agent) { |
104 custom_user_agent_ = custom_user_agent; | 112 custom_user_agent_ = custom_user_agent; |
105 } | 113 } |
(...skipping 25 matching lines...) Expand all Loading... |
131 bool allow_download_; | 139 bool allow_download_; |
132 ui::PageTransition transition_type_; | 140 ui::PageTransition transition_type_; |
133 bool should_replace_current_entry_; | 141 bool should_replace_current_entry_; |
134 int transferred_request_child_id_; | 142 int transferred_request_child_id_; |
135 int transferred_request_request_id_; | 143 int transferred_request_request_id_; |
136 int service_worker_provider_id_; | 144 int service_worker_provider_id_; |
137 blink::WebString custom_user_agent_; | 145 blink::WebString custom_user_agent_; |
138 blink::WebString requested_with_; | 146 blink::WebString requested_with_; |
139 scoped_ptr<StreamOverrideParameters> stream_override_; | 147 scoped_ptr<StreamOverrideParameters> stream_override_; |
140 LoFiState lofi_state_; | 148 LoFiState lofi_state_; |
| 149 base::TimeTicks browser_navigation_start_; |
141 | 150 |
142 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 151 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
143 }; | 152 }; |
144 | 153 |
145 } // namespace content | 154 } // namespace content |
146 | 155 |
147 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 156 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
OLD | NEW |