Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: Test. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 const WebString& stackTrace) {} 267 const WebString& stackTrace) {}
268 268
269 // Load commands ------------------------------------------------------- 269 // Load commands -------------------------------------------------------
270 270
271 // The client should handle the navigation externally. 271 // The client should handle the navigation externally.
272 virtual void loadURLExternally(const WebURLRequest&, 272 virtual void loadURLExternally(const WebURLRequest&,
273 WebNavigationPolicy, 273 WebNavigationPolicy,
274 const WebString& downloadName, 274 const WebString& downloadName,
275 bool shouldReplaceCurrentEntry) {} 275 bool shouldReplaceCurrentEntry) {}
276 276
277 // The client should load an error page in the current frame.
278 virtual void loadErrorPage(int reason) {}
279
277 // Navigational queries ------------------------------------------------ 280 // Navigational queries ------------------------------------------------
278 281
279 // The client may choose to alter the navigation policy. Otherwise, 282 // The client may choose to alter the navigation policy. Otherwise,
280 // defaultPolicy should just be returned. 283 // defaultPolicy should just be returned.
281 284
282 struct NavigationPolicyInfo { 285 struct NavigationPolicyInfo {
283 WebDataSource::ExtraData* extraData; 286 WebDataSource::ExtraData* extraData;
284 287
285 // Note: if browser side navigations are enabled, the client may modify 288 // Note: if browser side navigations are enabled, the client may modify
286 // the urlRequest. However, should this happen, the client should change 289 // the urlRequest. However, should this happen, the client should change
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 // Overwrites the given URL to use an HTML5 embed if possible. 758 // Overwrites the given URL to use an HTML5 embed if possible.
756 // An empty URL is returned if the URL is not overriden. 759 // An empty URL is returned if the URL is not overriden.
757 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { 760 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) {
758 return WebURL(); 761 return WebURL();
759 } 762 }
760 }; 763 };
761 764
762 } // namespace blink 765 } // namespace blink
763 766
764 #endif 767 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698