OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 395 |
396 void WebURLRequest::SetUiStartTime(double time_seconds) { | 396 void WebURLRequest::SetUiStartTime(double time_seconds) { |
397 resource_request_->SetUIStartTime(time_seconds); | 397 resource_request_->SetUIStartTime(time_seconds); |
398 } | 398 } |
399 | 399 |
400 bool WebURLRequest::IsExternalRequest() const { | 400 bool WebURLRequest::IsExternalRequest() const { |
401 return resource_request_->IsExternalRequest(); | 401 return resource_request_->IsExternalRequest(); |
402 } | 402 } |
403 | 403 |
404 WebURLRequest::LoadingIPCType WebURLRequest::GetLoadingIPCType() const { | 404 WebURLRequest::LoadingIPCType WebURLRequest::GetLoadingIPCType() const { |
| 405 if (resource_request_->IsMojoIPCForced()) |
| 406 return WebURLRequest::LoadingIPCType::kMojo; |
405 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) | 407 if (RuntimeEnabledFeatures::loadingWithMojoEnabled()) |
406 return WebURLRequest::LoadingIPCType::kMojo; | 408 return WebURLRequest::LoadingIPCType::kMojo; |
407 return WebURLRequest::LoadingIPCType::kChromeIPC; | 409 return WebURLRequest::LoadingIPCType::kChromeIPC; |
408 } | 410 } |
409 | 411 |
410 void WebURLRequest::SetNavigationStartTime(double navigation_start_seconds) { | 412 void WebURLRequest::SetNavigationStartTime(double navigation_start_seconds) { |
411 resource_request_->SetNavigationStartTime(navigation_start_seconds); | 413 resource_request_->SetNavigationStartTime(navigation_start_seconds); |
412 } | 414 } |
413 | 415 |
414 void WebURLRequest::SetIsSameDocumentNavigation(bool is_same_document) { | 416 void WebURLRequest::SetIsSameDocumentNavigation(bool is_same_document) { |
(...skipping 13 matching lines...) Expand all Loading... |
428 } | 430 } |
429 | 431 |
430 const ResourceRequest& WebURLRequest::ToResourceRequest() const { | 432 const ResourceRequest& WebURLRequest::ToResourceRequest() const { |
431 DCHECK(resource_request_); | 433 DCHECK(resource_request_); |
432 return *resource_request_; | 434 return *resource_request_; |
433 } | 435 } |
434 | 436 |
435 WebURLRequest::WebURLRequest(ResourceRequest& r) : resource_request_(&r) {} | 437 WebURLRequest::WebURLRequest(ResourceRequest& r) : resource_request_(&r) {} |
436 | 438 |
437 } // namespace blink | 439 } // namespace blink |
OLD | NEW |