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

Side by Side Diff: Source/core/loader/EmptyClients.h

Issue 669013002: Remove BackForwardClient, cleanup starting a history navigation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/loader/EmptyClients.cpp » ('j') | 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) 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 14 matching lines...) Expand all
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef EmptyClients_h 29 #ifndef EmptyClients_h
30 #define EmptyClients_h 30 #define EmptyClients_h
31 31
32 #include "core/editing/UndoStep.h" 32 #include "core/editing/UndoStep.h"
33 #include "core/inspector/InspectorClient.h" 33 #include "core/inspector/InspectorClient.h"
34 #include "core/loader/FrameLoaderClient.h" 34 #include "core/loader/FrameLoaderClient.h"
35 #include "core/page/BackForwardClient.h"
36 #include "core/page/ChromeClient.h" 35 #include "core/page/ChromeClient.h"
37 #include "core/page/ContextMenuClient.h" 36 #include "core/page/ContextMenuClient.h"
38 #include "core/page/DragClient.h" 37 #include "core/page/DragClient.h"
39 #include "core/page/EditorClient.h" 38 #include "core/page/EditorClient.h"
40 #include "core/page/FocusType.h" 39 #include "core/page/FocusType.h"
41 #include "core/page/Page.h" 40 #include "core/page/Page.h"
42 #include "core/page/SpellCheckerClient.h" 41 #include "core/page/SpellCheckerClient.h"
43 #include "core/page/StorageClient.h" 42 #include "core/page/StorageClient.h"
44 #include "platform/DragImage.h" 43 #include "platform/DragImage.h"
45 #include "platform/geometry/FloatRect.h" 44 #include "platform/geometry/FloatRect.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 class EmptyInspectorClient final : public InspectorClient { 318 class EmptyInspectorClient final : public InspectorClient {
320 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED; 319 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED;
321 public: 320 public:
322 EmptyInspectorClient() { } 321 EmptyInspectorClient() { }
323 virtual ~EmptyInspectorClient() { } 322 virtual ~EmptyInspectorClient() { }
324 323
325 virtual void highlight() override { } 324 virtual void highlight() override { }
326 virtual void hideHighlight() override { } 325 virtual void hideHighlight() override { }
327 }; 326 };
328 327
329 class EmptyBackForwardClient final : public BackForwardClient {
330 public:
331 virtual int backListCount() override { return 0; }
332 virtual int forwardListCount() override { return 0; }
333 virtual int backForwardListCount() override { return 0; }
334 };
335
336 class EmptyStorageClient final : public StorageClient { 328 class EmptyStorageClient final : public StorageClient {
337 public: 329 public:
338 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() overrid e; 330 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() overrid e;
339 virtual bool canAccessStorage(LocalFrame*, StorageType) const override { ret urn false; } 331 virtual bool canAccessStorage(LocalFrame*, StorageType) const override { ret urn false; }
340 }; 332 };
341 333
342 void fillWithEmptyClients(Page::PageClients&); 334 void fillWithEmptyClients(Page::PageClients&);
343 335
344 } 336 }
345 337
346 #endif // EmptyClients_h 338 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/loader/EmptyClients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698