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

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

Issue 1922793002: Move deferred commit logic from WebViewImpl to Document. (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) 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual void documentElementAvailable() = 0; 180 virtual void documentElementAvailable() = 0;
181 virtual void runScriptsAtDocumentElementAvailable() = 0; 181 virtual void runScriptsAtDocumentElementAvailable() = 0;
182 virtual void runScriptsAtDocumentReady(bool documentIsEmpty) = 0; 182 virtual void runScriptsAtDocumentReady(bool documentIsEmpty) = 0;
183 183
184 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0; 184 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0;
185 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0; 185 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0;
186 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) = 0; 186 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) = 0;
187 187
188 virtual void didChangeScrollOffset() { } 188 virtual void didChangeScrollOffset() { }
189 virtual void didUpdateCurrentHistoryItem() { } 189 virtual void didUpdateCurrentHistoryItem() { }
190 virtual void didRemoveAllPendingStylesheet() { }
191 190
192 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; } 191 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; }
193 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; } 192 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; }
194 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; } 193 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; }
195 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; } 194 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; }
196 virtual bool allowMedia(const KURL&) { return true; } 195 virtual bool allowMedia(const KURL&) { return true; }
197 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const K URL&) { return enabledPerSettings; } 196 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const K URL&) { return enabledPerSettings; }
198 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; } 197 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; }
199 198
200 // This callback notifies the client that the frame was about to run 199 // This callback notifies the client that the frame was about to run
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 UnloadHandler, 257 UnloadHandler,
259 }; 258 };
260 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 259 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
261 260
262 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 261 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
263 }; 262 };
264 263
265 } // namespace blink 264 } // namespace blink
266 265
267 #endif // FrameLoaderClient_h 266 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698