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

Side by Side Diff: Source/core/loader/FrameLoaderClient.h

Issue 861773003: Inform the WebFrameClient of BeforeUnload/Unload handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCach eHost(blink::WebApplicationCacheHostClient*) = 0; 221 virtual PassOwnPtr<blink::WebApplicationCacheHost> createApplicationCach eHost(blink::WebApplicationCacheHostClient*) = 0;
222 222
223 virtual void didStopAllLoaders() { } 223 virtual void didStopAllLoaders() { }
224 224
225 virtual void dispatchDidChangeManifest() { } 225 virtual void dispatchDidChangeManifest() { }
226 226
227 virtual unsigned backForwardLength() { return 0; } 227 virtual unsigned backForwardLength() { return 0; }
228 228
229 virtual bool isFrameLoaderClientImpl() const { return false; } 229 virtual bool isFrameLoaderClientImpl() const { return false; }
230
231 // Called when an element preventing the sudden termination of the frame
232 // is added or removed. |variation| is the number of elements added, or
233 // removed if it is negative. |type| is the type of element
234 // (BeforeUnload handler, Unload handler).
235 enum SuddenTerminationDisablerType {
Nate Chapin 2015/01/20 18:46:49 This enum and the matching one in WebFrameClient.h
clamy 2015/01/21 13:46:31 Done.
236 BeforeUnloadHandler,
237 UnloadHandler,
238 };
239 virtual void suddenTerminationDisablerChanged(int variation, SuddenTermi nationDisablerType) { }
240
230 }; 241 };
231 242
232 } // namespace blink 243 } // namespace blink
233 244
234 #endif // FrameLoaderClient_h 245 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698