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

Side by Side Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 874283003: Have WebFrameClient::suddenTerminationDisablerChanged return a boolean (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed nits Created 5 years, 10 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
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 } 927 }
928 928
929 unsigned FrameLoaderClientImpl::backForwardLength() 929 unsigned FrameLoaderClientImpl::backForwardLength()
930 { 930 {
931 WebViewImpl* webview = m_webFrame->viewImpl(); 931 WebViewImpl* webview = m_webFrame->viewImpl();
932 if (!webview || !webview->client()) 932 if (!webview || !webview->client())
933 return 0; 933 return 0;
934 return webview->client()->historyBackListCount() + 1 + webview->client()->hi storyForwardListCount(); 934 return webview->client()->historyBackListCount() + 1 + webview->client()->hi storyForwardListCount();
935 } 935 }
936 936
937 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(int variation, Sudd enTerminationDisablerType type) 937 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
938 { 938 {
939 if (m_webFrame->client()) { 939 if (m_webFrame->client()) {
940 m_webFrame->client()->suddenTerminationDisablerChanged( 940 m_webFrame->client()->suddenTerminationDisablerChanged(
941 variation, static_cast<WebFrameClient::SuddenTerminationDisablerType >(type)); 941 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
942 } 942 }
943 } 943 }
944 944
945 } // namespace blink 945 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698