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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 void dispatchWillSubmitForm(HTMLFormElement*) override; 281 void dispatchWillSubmitForm(HTMLFormElement*) override;
282 282
283 void didStartLoading(LoadStartType) override {} 283 void didStartLoading(LoadStartType) override {}
284 void progressEstimateChanged(double) override {} 284 void progressEstimateChanged(double) override {}
285 void didStopLoading() override {} 285 void didStopLoading() override {}
286 286
287 void loadURLExternally(const ResourceRequest&, 287 void loadURLExternally(const ResourceRequest&,
288 NavigationPolicy, 288 NavigationPolicy,
289 const String&, 289 const String&,
290 bool) override {} 290 bool) override {}
291 void loadErrorPage(int reason) override {}
291 292
292 DocumentLoader* createDocumentLoader(LocalFrame*, 293 DocumentLoader* createDocumentLoader(LocalFrame*,
293 const ResourceRequest&, 294 const ResourceRequest&,
294 const SubstituteData&, 295 const SubstituteData&,
295 ClientRedirectPolicy) override; 296 ClientRedirectPolicy) override;
296 297
297 String userAgent() override { return ""; } 298 String userAgent() override { return ""; }
298 299
299 String doNotTrackValue() override { return String(); } 300 String doNotTrackValue() override { return String(); }
300 301
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 ~EmptyContextMenuClient() override {} 427 ~EmptyContextMenuClient() override {}
427 bool showContextMenu(const ContextMenu*, bool) override { return false; } 428 bool showContextMenu(const ContextMenu*, bool) override { return false; }
428 void clearContextMenu() override {} 429 void clearContextMenu() override {}
429 }; 430 };
430 431
431 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 432 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
432 433
433 } // namespace blink 434 } // namespace blink
434 435
435 #endif // EmptyClients_h 436 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698