Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLRequest.cpp

Issue 2776523005: Plumbing devtools agent host id and request id between processes (Closed)
Patch Set: Full plumbing Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 } 408 }
409 409
410 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) { 410 void WebURLRequest::setNavigationStartTime(double navigationStartSeconds) {
411 m_resourceRequest->setNavigationStartTime(navigationStartSeconds); 411 m_resourceRequest->setNavigationStartTime(navigationStartSeconds);
412 } 412 }
413 413
414 void WebURLRequest::setIsSameDocumentNavigation(bool isSameDocument) { 414 void WebURLRequest::setIsSameDocumentNavigation(bool isSameDocument) {
415 m_resourceRequest->setIsSameDocumentNavigation(isSameDocument); 415 m_resourceRequest->setIsSameDocumentNavigation(isSameDocument);
416 } 416 }
417 417
418 WebString WebURLRequest::devToolsAgentHostId() const {
419 return m_resourceRequest->devToolsAgentHostId();
420 }
421
422 WebString WebURLRequest::devToolsRequestId() const {
423 return m_resourceRequest->devToolsRequestId();
424 }
425
426 void WebURLRequest::setBrowserGeneratedRequestId(
427 unsigned browserGeneratedRequestId) {
428 m_resourceRequest->setBrowserGeneratedRequestId(browserGeneratedRequestId);
429 }
430
418 WebURLRequest::InputToLoadPerfMetricReportPolicy 431 WebURLRequest::InputToLoadPerfMetricReportPolicy
419 WebURLRequest::inputPerfMetricReportPolicy() const { 432 WebURLRequest::inputPerfMetricReportPolicy() const {
420 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>( 433 return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(
421 m_resourceRequest->inputPerfMetricReportPolicy()); 434 m_resourceRequest->inputPerfMetricReportPolicy());
422 } 435 }
423 436
424 void WebURLRequest::setInputPerfMetricReportPolicy( 437 void WebURLRequest::setInputPerfMetricReportPolicy(
425 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) { 438 WebURLRequest::InputToLoadPerfMetricReportPolicy policy) {
426 m_resourceRequest->setInputPerfMetricReportPolicy( 439 m_resourceRequest->setInputPerfMetricReportPolicy(
427 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy)); 440 static_cast<blink::InputToLoadPerfMetricReportPolicy>(policy));
428 } 441 }
429 442
430 const ResourceRequest& WebURLRequest::toResourceRequest() const { 443 const ResourceRequest& WebURLRequest::toResourceRequest() const {
431 DCHECK(m_resourceRequest); 444 DCHECK(m_resourceRequest);
432 return *m_resourceRequest; 445 return *m_resourceRequest;
433 } 446 }
434 447
435 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {} 448 WebURLRequest::WebURLRequest(ResourceRequest& r) : m_resourceRequest(&r) {}
436 449
437 } // namespace blink 450 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698