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