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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "WebIconURL.h" | 43 #include "WebIconURL.h" |
44 #include "WebNavigationPolicy.h" | 44 #include "WebNavigationPolicy.h" |
45 #include "WebNavigationType.h" | 45 #include "WebNavigationType.h" |
46 #include "WebNavigatorContentUtilsClient.h" | 46 #include "WebNavigatorContentUtilsClient.h" |
47 #include "WebSandboxFlags.h" | 47 #include "WebSandboxFlags.h" |
48 #include "WebSourceLocation.h" | 48 #include "WebSourceLocation.h" |
49 #include "WebTextDirection.h" | 49 #include "WebTextDirection.h" |
50 #include "public/platform/BlameContext.h" | 50 #include "public/platform/BlameContext.h" |
51 #include "public/platform/WebColor.h" | 51 #include "public/platform/WebColor.h" |
52 #include "public/platform/WebCommon.h" | 52 #include "public/platform/WebCommon.h" |
53 #include "public/platform/WebContentSecurityPolicy.h" | |
54 #include "public/platform/WebContentSecurityPolicyStruct.h" | 53 #include "public/platform/WebContentSecurityPolicyStruct.h" |
55 #include "public/platform/WebEffectiveConnectionType.h" | 54 #include "public/platform/WebEffectiveConnectionType.h" |
56 #include "public/platform/WebFeaturePolicy.h" | 55 #include "public/platform/WebFeaturePolicy.h" |
57 #include "public/platform/WebFileSystem.h" | 56 #include "public/platform/WebFileSystem.h" |
58 #include "public/platform/WebFileSystemType.h" | 57 #include "public/platform/WebFileSystemType.h" |
59 #include "public/platform/WebInsecureRequestPolicy.h" | 58 #include "public/platform/WebInsecureRequestPolicy.h" |
60 #include "public/platform/WebLoadingBehaviorFlag.h" | 59 #include "public/platform/WebLoadingBehaviorFlag.h" |
61 #include "public/platform/WebPageVisibilityState.h" | 60 #include "public/platform/WebPageVisibilityState.h" |
62 #include "public/platform/WebSecurityOrigin.h" | 61 #include "public/platform/WebSecurityOrigin.h" |
63 #include "public/platform/WebSetSinkIdCallbacks.h" | 62 #include "public/platform/WebSetSinkIdCallbacks.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // be modified. | 295 // be modified. |
297 WebURLRequest& urlRequest; | 296 WebURLRequest& urlRequest; |
298 WebNavigationType navigationType; | 297 WebNavigationType navigationType; |
299 WebNavigationPolicy defaultPolicy; | 298 WebNavigationPolicy defaultPolicy; |
300 bool replacesCurrentHistoryItem; | 299 bool replacesCurrentHistoryItem; |
301 bool isHistoryNavigationInNewChildFrame; | 300 bool isHistoryNavigationInNewChildFrame; |
302 bool isClientRedirect; | 301 bool isClientRedirect; |
303 WebFormElement form; | 302 WebFormElement form; |
304 bool isCacheDisabled; | 303 bool isCacheDisabled; |
305 WebSourceLocation sourceLocation; | 304 WebSourceLocation sourceLocation; |
306 WebContentSecurityPolicyDisposition | |
307 shouldCheckMainWorldContentSecurityPolicy; | |
308 | 305 |
309 NavigationPolicyInfo(WebURLRequest& urlRequest) | 306 NavigationPolicyInfo(WebURLRequest& urlRequest) |
310 : extraData(nullptr), | 307 : extraData(nullptr), |
311 urlRequest(urlRequest), | 308 urlRequest(urlRequest), |
312 navigationType(WebNavigationTypeOther), | 309 navigationType(WebNavigationTypeOther), |
313 defaultPolicy(WebNavigationPolicyIgnore), | 310 defaultPolicy(WebNavigationPolicyIgnore), |
314 replacesCurrentHistoryItem(false), | 311 replacesCurrentHistoryItem(false), |
315 isHistoryNavigationInNewChildFrame(false), | 312 isHistoryNavigationInNewChildFrame(false), |
316 isClientRedirect(false), | 313 isClientRedirect(false), |
317 isCacheDisabled(false), | 314 isCacheDisabled(false) {} |
318 shouldCheckMainWorldContentSecurityPolicy( | |
319 WebContentSecurityPolicyDispositionCheck) {} | |
320 }; | 315 }; |
321 | 316 |
322 virtual WebNavigationPolicy decidePolicyForNavigation( | 317 virtual WebNavigationPolicy decidePolicyForNavigation( |
323 const NavigationPolicyInfo& info) { | 318 const NavigationPolicyInfo& info) { |
324 return info.defaultPolicy; | 319 return info.defaultPolicy; |
325 } | 320 } |
326 | 321 |
327 // During a history navigation, we may choose to load new subframes from | 322 // During a history navigation, we may choose to load new subframes from |
328 // history as well. This returns such a history item if appropriate. | 323 // history as well. This returns such a history item if appropriate. |
329 virtual WebHistoryItem historyItemForNewChildFrame() { | 324 virtual WebHistoryItem historyItemForNewChildFrame() { |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 // Overwrites the given URL to use an HTML5 embed if possible. | 751 // Overwrites the given URL to use an HTML5 embed if possible. |
757 // An empty URL is returned if the URL is not overriden. | 752 // An empty URL is returned if the URL is not overriden. |
758 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 753 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
759 return WebURL(); | 754 return WebURL(); |
760 } | 755 } |
761 }; | 756 }; |
762 | 757 |
763 } // namespace blink | 758 } // namespace blink |
764 | 759 |
765 #endif | 760 #endif |
OLD | NEW |