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

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

Issue 1417033010: Adding <keygen> Content Setting (Blink) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_core
Patch Set: Clean up code. Created 5 years, 1 month 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0; 167 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0;
168 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0; 168 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0;
169 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) = 0; 169 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) = 0;
170 170
171 virtual void didChangeScrollOffset() { } 171 virtual void didChangeScrollOffset() { }
172 virtual void didUpdateCurrentHistoryItem() { } 172 virtual void didUpdateCurrentHistoryItem() { }
173 virtual void didRemoveAllPendingStylesheet() { } 173 virtual void didRemoveAllPendingStylesheet() { }
174 174
175 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; } 175 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; }
176 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; } 176 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; }
177 virtual bool allowKeygen() { return false; }
177 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; } 178 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; }
178 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; } 179 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; }
179 virtual bool allowMedia(const KURL&) { return true; } 180 virtual bool allowMedia(const KURL&) { return true; }
180 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, Securit yOrigin*, const KURL&) { return enabledPerSettings; } 181 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, Securit yOrigin*, const KURL&) { return enabledPerSettings; }
181 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; } 182 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; }
182 183
183 // This callback notifies the client that the frame was about to run 184 // This callback notifies the client that the frame was about to run
184 // JavaScript but did not because allowScript returned false. We 185 // JavaScript but did not because allowScript returned false. We
185 // have a separate callback here because there are a number of places 186 // have a separate callback here because there are a number of places
186 // that need to know if JavaScript is enabled but are not necessarily 187 // that need to know if JavaScript is enabled but are not necessarily
187 // preparing to execute script. 188 // preparing to execute script.
188 virtual void didNotAllowScript() { } 189 virtual void didNotAllowScript() { }
190 // This callback is similar, but for keygen.
191 virtual void didNotAllowKeygen() { }
189 // This callback is similar, but for plugins. 192 // This callback is similar, but for plugins.
190 virtual void didNotAllowPlugins() { } 193 virtual void didNotAllowPlugins() { }
191 194
192 virtual WebCookieJar* cookieJar() const = 0; 195 virtual WebCookieJar* cookieJar() const = 0;
193 196
194 virtual void didChangeName(const String&) { } 197 virtual void didChangeName(const String&) { }
195 198
196 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { } 199 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { }
197 200
198 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { } 201 virtual void dispatchWillOpenWebSocket(WebSocketHandle*) { }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 BeforeUnloadHandler, 239 BeforeUnloadHandler,
237 UnloadHandler, 240 UnloadHandler,
238 }; 241 };
239 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 242 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
240 243
241 }; 244 };
242 245
243 } // namespace blink 246 } // namespace blink
244 247
245 #endif // FrameLoaderClient_h 248 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698