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

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: Created 4 years, 2 months 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 void dispatchWillSubmitForm(HTMLFormElement*) override; 282 void dispatchWillSubmitForm(HTMLFormElement*) override;
283 283
284 void didStartLoading(LoadStartType) override {} 284 void didStartLoading(LoadStartType) override {}
285 void progressEstimateChanged(double) override {} 285 void progressEstimateChanged(double) override {}
286 void didStopLoading() override {} 286 void didStopLoading() override {}
287 287
288 void loadURLExternally(const ResourceRequest&, 288 void loadURLExternally(const ResourceRequest&,
289 NavigationPolicy, 289 NavigationPolicy,
290 const String&, 290 const String&,
291 bool) override {} 291 bool) override {}
292 void loadErrorPage(int reason) {}
292 293
293 DocumentLoader* createDocumentLoader(LocalFrame*, 294 DocumentLoader* createDocumentLoader(LocalFrame*,
294 const ResourceRequest&, 295 const ResourceRequest&,
295 const SubstituteData&) override; 296 const SubstituteData&) 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
301 void transitionToCommittedForNewPage() override {} 302 void transitionToCommittedForNewPage() override {}
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 ~EmptyContextMenuClient() override {} 425 ~EmptyContextMenuClient() override {}
425 bool showContextMenu(const ContextMenu*, bool) override { return false; } 426 bool showContextMenu(const ContextMenu*, bool) override { return false; }
426 void clearContextMenu() override {} 427 void clearContextMenu() override {}
427 }; 428 };
428 429
429 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 430 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
430 431
431 } // namespace blink 432 } // namespace blink
432 433
433 #endif // EmptyClients_h 434 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698