| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 WebNavigationPolicy default_policy; | 312 WebNavigationPolicy default_policy; |
| 313 bool replaces_current_history_item; | 313 bool replaces_current_history_item; |
| 314 bool is_history_navigation_in_new_child_frame; | 314 bool is_history_navigation_in_new_child_frame; |
| 315 bool is_client_redirect; | 315 bool is_client_redirect; |
| 316 WebFormElement form; | 316 WebFormElement form; |
| 317 bool is_cache_disabled; | 317 bool is_cache_disabled; |
| 318 WebSourceLocation source_location; | 318 WebSourceLocation source_location; |
| 319 WebContentSecurityPolicyDisposition | 319 WebContentSecurityPolicyDisposition |
| 320 should_check_main_world_content_security_policy; | 320 should_check_main_world_content_security_policy; |
| 321 | 321 |
| 322 // Specify whether or not a MHTML Archive can be used to load a subframe |
| 323 // resource instead of doing a network request. |
| 324 enum class ArchiveStatus { Absent, Present }; |
| 325 ArchiveStatus archive_status; |
| 326 |
| 322 NavigationPolicyInfo(WebURLRequest& url_request) | 327 NavigationPolicyInfo(WebURLRequest& url_request) |
| 323 : extra_data(nullptr), | 328 : extra_data(nullptr), |
| 324 url_request(url_request), | 329 url_request(url_request), |
| 325 navigation_type(kWebNavigationTypeOther), | 330 navigation_type(kWebNavigationTypeOther), |
| 326 default_policy(kWebNavigationPolicyIgnore), | 331 default_policy(kWebNavigationPolicyIgnore), |
| 327 replaces_current_history_item(false), | 332 replaces_current_history_item(false), |
| 328 is_history_navigation_in_new_child_frame(false), | 333 is_history_navigation_in_new_child_frame(false), |
| 329 is_client_redirect(false), | 334 is_client_redirect(false), |
| 330 is_cache_disabled(false), | 335 is_cache_disabled(false), |
| 331 should_check_main_world_content_security_policy( | 336 should_check_main_world_content_security_policy( |
| 332 kWebContentSecurityPolicyDispositionCheck) {} | 337 kWebContentSecurityPolicyDispositionCheck), |
| 338 archive_status(ArchiveStatus::Absent) {} |
| 333 }; | 339 }; |
| 334 | 340 |
| 335 virtual WebNavigationPolicy DecidePolicyForNavigation( | 341 virtual WebNavigationPolicy DecidePolicyForNavigation( |
| 336 const NavigationPolicyInfo& info) { | 342 const NavigationPolicyInfo& info) { |
| 337 return info.default_policy; | 343 return info.default_policy; |
| 338 } | 344 } |
| 339 | 345 |
| 340 // During a history navigation, we may choose to load new subframes from | 346 // During a history navigation, we may choose to load new subframes from |
| 341 // history as well. This returns such a history item if appropriate. | 347 // history as well. This returns such a history item if appropriate. |
| 342 virtual WebHistoryItem HistoryItemForNewChildFrame() { | 348 virtual WebHistoryItem HistoryItemForNewChildFrame() { |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 // Overwrites the given URL to use an HTML5 embed if possible. | 783 // Overwrites the given URL to use an HTML5 embed if possible. |
| 778 // An empty URL is returned if the URL is not overriden. | 784 // An empty URL is returned if the URL is not overriden. |
| 779 virtual WebURL OverrideFlashEmbedWithHTML(const WebURL& url) { | 785 virtual WebURL OverrideFlashEmbedWithHTML(const WebURL& url) { |
| 780 return WebURL(); | 786 return WebURL(); |
| 781 } | 787 } |
| 782 }; | 788 }; |
| 783 | 789 |
| 784 } // namespace blink | 790 } // namespace blink |
| 785 | 791 |
| 786 #endif | 792 #endif |
| OLD | NEW |