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

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: Words. Created 4 years, 1 month 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 const WebString& stackTrace) {} 263 const WebString& stackTrace) {}
264 264
265 // Load commands ------------------------------------------------------- 265 // Load commands -------------------------------------------------------
266 266
267 // The client should handle the navigation externally. 267 // The client should handle the navigation externally.
268 virtual void loadURLExternally(const WebURLRequest&, 268 virtual void loadURLExternally(const WebURLRequest&,
269 WebNavigationPolicy, 269 WebNavigationPolicy,
270 const WebString& downloadName, 270 const WebString& downloadName,
271 bool shouldReplaceCurrentEntry) {} 271 bool shouldReplaceCurrentEntry) {}
272 272
273 // The client should load an error page in the current frame.
274 virtual void loadErrorPage(int reason) {}
275
273 // Navigational queries ------------------------------------------------ 276 // Navigational queries ------------------------------------------------
274 277
275 // The client may choose to alter the navigation policy. Otherwise, 278 // The client may choose to alter the navigation policy. Otherwise,
276 // defaultPolicy should just be returned. 279 // defaultPolicy should just be returned.
277 280
278 struct NavigationPolicyInfo { 281 struct NavigationPolicyInfo {
279 WebDataSource::ExtraData* extraData; 282 WebDataSource::ExtraData* extraData;
280 283
281 // Note: if browser side navigations are enabled, the client may modify 284 // Note: if browser side navigations are enabled, the client may modify
282 // the urlRequest. However, should this happen, the client should change 285 // the urlRequest. However, should this happen, the client should change
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 // Overwrites the given URL to use an HTML5 embed if possible. 754 // Overwrites the given URL to use an HTML5 embed if possible.
752 // An empty URL is returned if the URL is not overriden. 755 // An empty URL is returned if the URL is not overriden.
753 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { 756 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) {
754 return WebURL(); 757 return WebURL();
755 } 758 }
756 }; 759 };
757 760
758 } // namespace blink 761 } // namespace blink
759 762
760 #endif 763 #endif
OLDNEW
« components/error_page_strings.grdp ('K') | « 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