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

Side by Side Diff: Source/web/FrameLoaderClientImpl.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) 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() overrid e; 167 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() overrid e;
168 168
169 virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebAp plicationCacheHostClient*) override; 169 virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebAp plicationCacheHostClient*) override;
170 170
171 virtual void didStopAllLoaders() override; 171 virtual void didStopAllLoaders() override;
172 172
173 virtual void dispatchDidChangeManifest() override; 173 virtual void dispatchDidChangeManifest() override;
174 174
175 virtual unsigned backForwardLength() override; 175 virtual unsigned backForwardLength() override;
176 176
177 virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminati onDisablerType) override;
177 private: 178 private:
178 virtual bool isFrameLoaderClientImpl() const override { return true; } 179 virtual bool isFrameLoaderClientImpl() const override { return true; }
179 180
180 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoader*); 181 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoader*);
181 182
182 // The WebFrame that owns this object and manages its lifetime. Therefore, 183 // The WebFrame that owns this object and manages its lifetime. Therefore,
183 // the web frame object is guaranteed to exist. 184 // the web frame object is guaranteed to exist.
184 WebLocalFrameImpl* m_webFrame; 185 WebLocalFrameImpl* m_webFrame;
185 }; 186 };
186 187
187 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 188 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
188 189
189 } // namespace blink 190 } // namespace blink
190 191
191 #endif 192 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698