OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 309 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
310 | 310 |
311 void setNavigationStartTime(double); | 311 void setNavigationStartTime(double); |
312 double navigationStartTime() const { return m_navigationStart; } | 312 double navigationStartTime() const { return m_navigationStart; } |
313 | 313 |
314 void setIsSameDocumentNavigation(bool isSameDocument) { | 314 void setIsSameDocumentNavigation(bool isSameDocument) { |
315 m_isSameDocumentNavigation = isSameDocument; | 315 m_isSameDocumentNavigation = isSameDocument; |
316 } | 316 } |
317 bool isSameDocumentNavigation() const { return m_isSameDocumentNavigation; } | 317 bool isSameDocumentNavigation() const { return m_isSameDocumentNavigation; } |
318 | 318 |
| 319 void setDevToolsAgentHostId(const String& devToolsAgentHostId) { |
| 320 m_devToolsAgentHostId = devToolsAgentHostId; |
| 321 } |
| 322 const String& devToolsAgentHostId() const { return m_devToolsAgentHostId; } |
| 323 |
| 324 void setDevToolsRequestId(const String& devToolsRequestId) { |
| 325 m_devToolsRequestId = devToolsRequestId; |
| 326 } |
| 327 const String& devToolsRequestId() const { return m_devToolsRequestId; } |
| 328 |
| 329 // Only expected to be set for resource requests due to a browser side |
| 330 // navigation. |
| 331 void setBrowserGeneratedRequestId(unsigned browserGeneratedRequestId) { |
| 332 m_browserGeneratedRequestId = browserGeneratedRequestId; |
| 333 } |
| 334 unsigned browserGeneratedRequestId() const { |
| 335 return m_browserGeneratedRequestId; |
| 336 } |
| 337 |
319 private: | 338 private: |
320 const CacheControlHeader& cacheControlHeader() const; | 339 const CacheControlHeader& cacheControlHeader() const; |
321 | 340 |
322 bool needsHTTPOrigin() const; | 341 bool needsHTTPOrigin() const; |
323 | 342 |
324 KURL m_url; | 343 KURL m_url; |
325 WebCachePolicy m_cachePolicy; | 344 WebCachePolicy m_cachePolicy; |
326 double m_timeoutInterval; // 0 is a magic value for platform default on | 345 double m_timeoutInterval; // 0 is a magic value for platform default on |
327 // platforms that have one. | 346 // platforms that have one. |
328 KURL m_firstPartyForCookies; | 347 KURL m_firstPartyForCookies; |
(...skipping 22 matching lines...) Expand all Loading... |
351 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 370 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
352 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 371 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
353 WebURLRequest::PreviewsState m_previewsState; | 372 WebURLRequest::PreviewsState m_previewsState; |
354 ReferrerPolicy m_referrerPolicy; | 373 ReferrerPolicy m_referrerPolicy; |
355 bool m_didSetHTTPReferrer; | 374 bool m_didSetHTTPReferrer; |
356 bool m_checkForBrowserSideNavigation; | 375 bool m_checkForBrowserSideNavigation; |
357 double m_uiStartTime; | 376 double m_uiStartTime; |
358 bool m_isExternalRequest; | 377 bool m_isExternalRequest; |
359 bool m_isSameDocumentNavigation; | 378 bool m_isSameDocumentNavigation; |
360 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 379 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 380 String m_devToolsAgentHostId; |
| 381 String m_devToolsRequestId; |
| 382 unsigned m_browserGeneratedRequestId; |
361 | 383 |
362 mutable CacheControlHeader m_cacheControlHeaderCache; | 384 mutable CacheControlHeader m_cacheControlHeaderCache; |
363 | 385 |
364 static double s_defaultTimeoutInterval; | 386 static double s_defaultTimeoutInterval; |
365 | 387 |
366 RedirectStatus m_redirectStatus; | 388 RedirectStatus m_redirectStatus; |
367 | 389 |
368 double m_navigationStart = 0; | 390 double m_navigationStart = 0; |
369 }; | 391 }; |
370 | 392 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 bool m_checkForBrowserSideNavigation; | 430 bool m_checkForBrowserSideNavigation; |
409 double m_uiStartTime; | 431 double m_uiStartTime; |
410 bool m_isExternalRequest; | 432 bool m_isExternalRequest; |
411 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 433 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
412 ResourceRequest::RedirectStatus m_redirectStatus; | 434 ResourceRequest::RedirectStatus m_redirectStatus; |
413 }; | 435 }; |
414 | 436 |
415 } // namespace blink | 437 } // namespace blink |
416 | 438 |
417 #endif // ResourceRequest_h | 439 #endif // ResourceRequest_h |
OLD | NEW |