OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
319 const NavigationPolicyInfo& info) { | 319 const NavigationPolicyInfo& info) { |
320 return info.default_policy; | 320 return info.default_policy; |
321 } | 321 } |
322 | 322 |
323 // During a history navigation, we may choose to load new subframes from | 323 // During a history navigation, we may choose to load new subframes from |
324 // history as well. This returns such a history item if appropriate. | 324 // history as well. This returns such a history item if appropriate. |
325 virtual WebHistoryItem HistoryItemForNewChildFrame() { | 325 virtual WebHistoryItem HistoryItemForNewChildFrame() { |
326 return WebHistoryItem(); | 326 return WebHistoryItem(); |
327 } | 327 } |
328 | 328 |
329 // Asks the embedder whether the frame is allowed to navigate the main frame | |
330 // to a data URL. | |
kinuko
2017/04/19 07:07:44
Please add a TODO to consider converging this into
dcheng
2017/04/19 11:59:49
+1
meacer
2017/04/21 01:31:21
Done.
| |
331 virtual bool AllowContentInitiatedDataUrlNavigations(const WebURL&) { | |
332 return false; | |
333 } | |
334 | |
329 // Navigational notifications ------------------------------------------ | 335 // Navigational notifications ------------------------------------------ |
330 | 336 |
331 // These notifications bracket any loading that occurs in the WebFrame. | 337 // These notifications bracket any loading that occurs in the WebFrame. |
332 virtual void DidStartLoading(bool to_different_document) {} | 338 virtual void DidStartLoading(bool to_different_document) {} |
333 virtual void DidStopLoading() {} | 339 virtual void DidStopLoading() {} |
334 | 340 |
335 // Notification that some progress was made loading the current frame. | 341 // Notification that some progress was made loading the current frame. |
336 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully | 342 // loadProgress is a value between 0 (nothing loaded) and 1.0 (frame fully |
337 // loaded). | 343 // loaded). |
338 virtual void DidChangeLoadProgress(double load_progress) {} | 344 virtual void DidChangeLoadProgress(double load_progress) {} |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
758 // Overwrites the given URL to use an HTML5 embed if possible. | 764 // Overwrites the given URL to use an HTML5 embed if possible. |
759 // An empty URL is returned if the URL is not overriden. | 765 // An empty URL is returned if the URL is not overriden. |
760 virtual WebURL OverrideFlashEmbedWithHTML(const WebURL& url) { | 766 virtual WebURL OverrideFlashEmbedWithHTML(const WebURL& url) { |
761 return WebURL(); | 767 return WebURL(); |
762 } | 768 } |
763 }; | 769 }; |
764 | 770 |
765 } // namespace blink | 771 } // namespace blink |
766 | 772 |
767 #endif | 773 #endif |
OLD | NEW |