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

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

Issue 1890493002: PlzNavigate: properly execute BeforeUnload on renderer initiated navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 bool WebURLRequest::checkForBrowserSideNavigation() const 437 bool WebURLRequest::checkForBrowserSideNavigation() const
438 { 438 {
439 return m_private->m_resourceRequest->checkForBrowserSideNavigation(); 439 return m_private->m_resourceRequest->checkForBrowserSideNavigation();
440 } 440 }
441 441
442 void WebURLRequest::setCheckForBrowserSideNavigation(bool check) 442 void WebURLRequest::setCheckForBrowserSideNavigation(bool check)
443 { 443 {
444 m_private->m_resourceRequest->setCheckForBrowserSideNavigation(check); 444 m_private->m_resourceRequest->setCheckForBrowserSideNavigation(check);
445 } 445 }
446 446
447 void WebURLRequest::setBypassBeforeUnload(bool bypass)
448 {
449 m_private->m_resourceRequest->setBypassBeforeUnload(bypass);
450 }
451
447 double WebURLRequest::uiStartTime() const 452 double WebURLRequest::uiStartTime() const
448 { 453 {
449 return m_private->m_resourceRequest->uiStartTime(); 454 return m_private->m_resourceRequest->uiStartTime();
450 } 455 }
451 456
452 void WebURLRequest::setUiStartTime(double time) 457 void WebURLRequest::setUiStartTime(double time)
453 { 458 {
454 m_private->m_resourceRequest->setUIStartTime(time); 459 m_private->m_resourceRequest->setUIStartTime(time);
455 } 460 }
456 461
(...skipping 28 matching lines...) Expand all
485 // Subclasses may call this directly so a self-assignment check is needed 490 // Subclasses may call this directly so a self-assignment check is needed
486 // here as well as in the public assign method. 491 // here as well as in the public assign method.
487 if (m_private == p) 492 if (m_private == p)
488 return; 493 return;
489 if (m_private) 494 if (m_private)
490 m_private->dispose(); 495 m_private->dispose();
491 m_private = p; 496 m_private = p;
492 } 497 }
493 498
494 } // namespace blink 499 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698