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 27 matching lines...) Expand all Loading... |
38 #include "WebFormElement.h" | 38 #include "WebFormElement.h" |
39 #include "WebFrame.h" | 39 #include "WebFrame.h" |
40 #include "WebFrameOwnerProperties.h" | 40 #include "WebFrameOwnerProperties.h" |
41 #include "WebHistoryCommitType.h" | 41 #include "WebHistoryCommitType.h" |
42 #include "WebHistoryItem.h" | 42 #include "WebHistoryItem.h" |
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 "WebTextDirection.h" | 49 #include "WebTextDirection.h" |
49 #include "public/platform/BlameContext.h" | 50 #include "public/platform/BlameContext.h" |
50 #include "public/platform/WebColor.h" | 51 #include "public/platform/WebColor.h" |
51 #include "public/platform/WebCommon.h" | 52 #include "public/platform/WebCommon.h" |
52 #include "public/platform/WebContentSecurityPolicyStruct.h" | 53 #include "public/platform/WebContentSecurityPolicyStruct.h" |
53 #include "public/platform/WebEffectiveConnectionType.h" | 54 #include "public/platform/WebEffectiveConnectionType.h" |
54 #include "public/platform/WebFeaturePolicy.h" | 55 #include "public/platform/WebFeaturePolicy.h" |
55 #include "public/platform/WebFileSystem.h" | 56 #include "public/platform/WebFileSystem.h" |
56 #include "public/platform/WebFileSystemType.h" | 57 #include "public/platform/WebFileSystemType.h" |
57 #include "public/platform/WebInsecureRequestPolicy.h" | 58 #include "public/platform/WebInsecureRequestPolicy.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // should stop in blink. In all other cases, the urlRequest should not | 294 // should stop in blink. In all other cases, the urlRequest should not |
294 // be modified. | 295 // be modified. |
295 WebURLRequest& urlRequest; | 296 WebURLRequest& urlRequest; |
296 WebNavigationType navigationType; | 297 WebNavigationType navigationType; |
297 WebNavigationPolicy defaultPolicy; | 298 WebNavigationPolicy defaultPolicy; |
298 bool replacesCurrentHistoryItem; | 299 bool replacesCurrentHistoryItem; |
299 bool isHistoryNavigationInNewChildFrame; | 300 bool isHistoryNavigationInNewChildFrame; |
300 bool isClientRedirect; | 301 bool isClientRedirect; |
301 WebFormElement form; | 302 WebFormElement form; |
302 bool isCacheDisabled; | 303 bool isCacheDisabled; |
| 304 WebSourceLocation sourceLocation; |
303 | 305 |
304 NavigationPolicyInfo(WebURLRequest& urlRequest) | 306 NavigationPolicyInfo(WebURLRequest& urlRequest) |
305 : extraData(nullptr), | 307 : extraData(nullptr), |
306 urlRequest(urlRequest), | 308 urlRequest(urlRequest), |
307 navigationType(WebNavigationTypeOther), | 309 navigationType(WebNavigationTypeOther), |
308 defaultPolicy(WebNavigationPolicyIgnore), | 310 defaultPolicy(WebNavigationPolicyIgnore), |
309 replacesCurrentHistoryItem(false), | 311 replacesCurrentHistoryItem(false), |
310 isHistoryNavigationInNewChildFrame(false), | 312 isHistoryNavigationInNewChildFrame(false), |
311 isClientRedirect(false), | 313 isClientRedirect(false), |
312 isCacheDisabled(false) {} | 314 isCacheDisabled(false) {} |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 // Overwrites the given URL to use an HTML5 embed if possible. | 747 // Overwrites the given URL to use an HTML5 embed if possible. |
746 // An empty URL is returned if the URL is not overriden. | 748 // An empty URL is returned if the URL is not overriden. |
747 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { | 749 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { |
748 return WebURL(); | 750 return WebURL(); |
749 } | 751 } |
750 }; | 752 }; |
751 | 753 |
752 } // namespace blink | 754 } // namespace blink |
753 | 755 |
754 #endif | 756 #endif |
OLD | NEW |