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

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: moved navigatorcontentutils to http/tests 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 // Informs the browser that the zoom level has changed as a result of an 255 // Informs the browser that the zoom level has changed as a result of an
256 // action that wasn't initiated by the client. 256 // action that wasn't initiated by the client.
257 virtual void zoomLevelChanged() { } 257 virtual void zoomLevelChanged() { }
258 258
259 259
260 // Navigator Content Utils -------------------------------------------- 260 // Navigator Content Utils --------------------------------------------
261 261
262 // Registers a new URL handler for the given protocol. 262 // Registers a new URL handler for the given protocol.
263 virtual void registerProtocolHandler(const WebString& scheme, 263 virtual void registerProtocolHandler(const WebString& scheme,
264 const WebURL& baseUrl,
265 const WebURL& url, 264 const WebURL& url,
266 const WebString& title) { } 265 const WebString& title) { }
267 266
268 // Unregisters a given URL handler for the given protocol. 267 // Unregisters a given URL handler for the given protocol.
269 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) { } 268 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & url) { }
270 269
271 // Check if a given URL handler is registered for the given protocol. 270 // Check if a given URL handler is registered for the given protocol.
272 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) 271 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& url)
273 { 272 {
274 return WebCustomHandlersNew; 273 return WebCustomHandlersNew;
275 } 274 }
abarth-chromium 2014/08/20 18:15:10 Is Chromium prepared to handle this API change or
pals 2014/08/21 14:02:56 I am not sure what is the best way to land this ch
276 275
277 276
278 // Visibility ----------------------------------------------------------- 277 // Visibility -----------------------------------------------------------
279 278
280 // Returns the current visibility of the WebView. 279 // Returns the current visibility of the WebView.
281 virtual WebPageVisibilityState visibilityState() const 280 virtual WebPageVisibilityState visibilityState() const
282 { 281 {
283 return WebPageVisibilityStateVisible; 282 return WebPageVisibilityStateVisible;
284 } 283 }
285 284
(...skipping 22 matching lines...) Expand all
308 // Informs the browser that the draggable regions have been updated. 307 // Informs the browser that the draggable regions have been updated.
309 virtual void draggableRegionsChanged() { } 308 virtual void draggableRegionsChanged() { }
310 309
311 protected: 310 protected:
312 ~WebViewClient() { } 311 ~WebViewClient() { }
313 }; 312 };
314 313
315 } // namespace blink 314 } // namespace blink
316 315
317 #endif 316 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698