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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // the WebNavigationPolicy to WebNavigationPolicyIgnore, and the load | 289 // the WebNavigationPolicy to WebNavigationPolicyIgnore, and the load |
290 // should stop in blink. In all other cases, the urlRequest should not | 290 // should stop in blink. In all other cases, the urlRequest should not |
291 // be modified. | 291 // be modified. |
292 WebURLRequest& urlRequest; | 292 WebURLRequest& urlRequest; |
293 WebNavigationType navigationType; | 293 WebNavigationType navigationType; |
294 WebNavigationPolicy defaultPolicy; | 294 WebNavigationPolicy defaultPolicy; |
295 bool replacesCurrentHistoryItem; | 295 bool replacesCurrentHistoryItem; |
296 bool isHistoryNavigationInNewChildFrame; | 296 bool isHistoryNavigationInNewChildFrame; |
297 bool isClientRedirect; | 297 bool isClientRedirect; |
298 WebFormElement form; | 298 WebFormElement form; |
| 299 bool isCacheDisabled; |
299 | 300 |
300 NavigationPolicyInfo(WebURLRequest& urlRequest) | 301 NavigationPolicyInfo(WebURLRequest& urlRequest) |
301 : extraData(nullptr), | 302 : extraData(nullptr), |
302 urlRequest(urlRequest), | 303 urlRequest(urlRequest), |
303 navigationType(WebNavigationTypeOther), | 304 navigationType(WebNavigationTypeOther), |
304 defaultPolicy(WebNavigationPolicyIgnore), | 305 defaultPolicy(WebNavigationPolicyIgnore), |
305 replacesCurrentHistoryItem(false), | 306 replacesCurrentHistoryItem(false), |
306 isHistoryNavigationInNewChildFrame(false), | 307 isHistoryNavigationInNewChildFrame(false), |
307 isClientRedirect(false) {} | 308 isClientRedirect(false), |
| 309 isCacheDisabled(false) {} |
308 }; | 310 }; |
309 | 311 |
310 virtual WebNavigationPolicy decidePolicyForNavigation( | 312 virtual WebNavigationPolicy decidePolicyForNavigation( |
311 const NavigationPolicyInfo& info) { | 313 const NavigationPolicyInfo& info) { |
312 return info.defaultPolicy; | 314 return info.defaultPolicy; |
313 } | 315 } |
314 | 316 |
315 // During a history navigation, we may choose to load new subframes from | 317 // During a history navigation, we may choose to load new subframes from |
316 // history as well. This returns such a history item if appropriate. | 318 // history as well. This returns such a history item if appropriate. |
317 virtual WebHistoryItem historyItemForNewChildFrame() { | 319 virtual WebHistoryItem historyItemForNewChildFrame() { |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 // Overwrites the given URL to use an HTML5 embed if possible. | 756 // Overwrites the given URL to use an HTML5 embed if possible. |
755 // An empty URL is returned if the URL is not overriden. | 757 // An empty URL is returned if the URL is not overriden. |
756 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 758 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
757 return WebURL(); | 759 return WebURL(); |
758 } | 760 } |
759 }; | 761 }; |
760 | 762 |
761 } // namespace blink | 763 } // namespace blink |
762 | 764 |
763 #endif | 765 #endif |
OLD | NEW |