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

Side by Side Diff: public/web/WebViewClient.h

Issue 392993005: Custom handlers should throw SecurityError exception if the URL's origin differs from the document'… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 // Informs the browser that the zoom level has changed as a result of an 257 // Informs the browser that the zoom level has changed as a result of an
258 // action that wasn't initiated by the client. 258 // action that wasn't initiated by the client.
259 virtual void zoomLevelChanged() { } 259 virtual void zoomLevelChanged() { }
260 260
261 261
262 // Navigator Content Utils -------------------------------------------- 262 // Navigator Content Utils --------------------------------------------
263 263
264 // Registers a new URL handler for the given protocol. 264 // Registers a new URL handler for the given protocol.
265 virtual void registerProtocolHandler(const WebString& scheme, 265 virtual void registerProtocolHandler(const WebString& scheme,
266 const WebURL& baseUrl,
267 const WebURL& url, 266 const WebURL& url,
268 const WebString& title) { } 267 const WebString& title) { }
269 268
270 // Unregisters a given URL handler for the given protocol. 269 // Unregisters a given URL handler for the given protocol.
271 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) { } 270 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & url) { }
272 271
273 // Check if a given URL handler is registered for the given protocol. 272 // Check if a given URL handler is registered for the given protocol.
274 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) 273 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& url)
275 { 274 {
276 return WebCustomHandlersNew; 275 return WebCustomHandlersNew;
277 } 276 }
278 277
279 278
280 // Visibility ----------------------------------------------------------- 279 // Visibility -----------------------------------------------------------
281 280
282 // Returns the current visibility of the WebView. 281 // Returns the current visibility of the WebView.
283 virtual WebPageVisibilityState visibilityState() const 282 virtual WebPageVisibilityState visibilityState() const
284 { 283 {
(...skipping 25 matching lines...) Expand all
310 // Informs the browser that the draggable regions have been updated. 309 // Informs the browser that the draggable regions have been updated.
311 virtual void draggableRegionsChanged() { } 310 virtual void draggableRegionsChanged() { }
312 311
313 protected: 312 protected:
314 ~WebViewClient() { } 313 ~WebViewClient() { }
315 }; 314 };
316 315
317 } // namespace blink 316 } // namespace blink
318 317
319 #endif 318 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698