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

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: frameNavigation test. 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 const WebString& stackTrace) {} 264 const WebString& stackTrace) {}
265 265
266 // Load commands ------------------------------------------------------- 266 // Load commands -------------------------------------------------------
267 267
268 // The client should handle the navigation externally. 268 // The client should handle the navigation externally.
269 virtual void loadURLExternally(const WebURLRequest&, 269 virtual void loadURLExternally(const WebURLRequest&,
270 WebNavigationPolicy, 270 WebNavigationPolicy,
271 const WebString& downloadName, 271 const WebString& downloadName,
272 bool shouldReplaceCurrentEntry) {} 272 bool shouldReplaceCurrentEntry) {}
273 273
274 // The client should load an error page in the current frame.
275 virtual void loadErrorPage(int reason) {}
276
274 // Navigational queries ------------------------------------------------ 277 // Navigational queries ------------------------------------------------
275 278
276 // The client may choose to alter the navigation policy. Otherwise, 279 // The client may choose to alter the navigation policy. Otherwise,
277 // defaultPolicy should just be returned. 280 // defaultPolicy should just be returned.
278 281
279 struct NavigationPolicyInfo { 282 struct NavigationPolicyInfo {
280 WebDataSource::ExtraData* extraData; 283 WebDataSource::ExtraData* extraData;
281 284
282 // Note: if browser side navigations are enabled, the client may modify 285 // Note: if browser side navigations are enabled, the client may modify
283 // the urlRequest. However, should this happen, the client should change 286 // the urlRequest. However, should this happen, the client should change
(...skipping 471 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

Powered by Google App Engine
This is Rietveld 408576698