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

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

Issue 156123004: Move the frame tree into the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests Created 6 years, 10 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 | Annotate | Revision Log
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 }; 172 };
173 173
174 class EmptyFrameLoaderClient FINAL : public FrameLoaderClient { 174 class EmptyFrameLoaderClient FINAL : public FrameLoaderClient {
175 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED; 175 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED;
176 public: 176 public:
177 EmptyFrameLoaderClient() { } 177 EmptyFrameLoaderClient() { }
178 virtual ~EmptyFrameLoaderClient() { } 178 virtual ~EmptyFrameLoaderClient() { }
179 179
180 virtual bool hasWebView() const OVERRIDE { return true; } // mainly for asse rtions 180 virtual bool hasWebView() const OVERRIDE { return true; } // mainly for asse rtions
181 181
182 virtual Frame* parent() const OVERRIDE { return 0; }
183 virtual Frame* top() const OVERRIDE { return 0; }
184 virtual Frame* previousSibling() const OVERRIDE { return 0; }
185 virtual Frame* nextSibling() const OVERRIDE { return 0; }
186 virtual Frame* firstChild() const OVERRIDE { return 0; }
187 virtual Frame* lastChild() const OVERRIDE { return 0; }
182 virtual void detachedFromParent() OVERRIDE { } 188 virtual void detachedFromParent() OVERRIDE { }
183 189
184 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long, Resourc eRequest&, const ResourceResponse&) OVERRIDE { } 190 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long, Resourc eRequest&, const ResourceResponse&) OVERRIDE { }
185 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long, cons t ResourceResponse&) OVERRIDE { } 191 virtual void dispatchDidReceiveResponse(DocumentLoader*, unsigned long, cons t ResourceResponse&) OVERRIDE { }
186 virtual void dispatchDidFinishLoading(DocumentLoader*, unsigned long) OVERRI DE { } 192 virtual void dispatchDidFinishLoading(DocumentLoader*, unsigned long) OVERRI DE { }
187 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&, const ResourceResponse&) OVERRIDE { } 193 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&, const ResourceResponse&) OVERRIDE { }
188 194
189 virtual void dispatchDidHandleOnloadEvents() OVERRIDE { } 195 virtual void dispatchDidHandleOnloadEvents() OVERRIDE { }
190 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() OVERRIDE { } 196 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() OVERRIDE { }
191 virtual void dispatchWillClose() OVERRIDE { } 197 virtual void dispatchWillClose() OVERRIDE { }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 public: 333 public:
328 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E; 334 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID E;
329 virtual bool canAccessStorage(Frame*, StorageType) const OVERRIDE { return f alse; } 335 virtual bool canAccessStorage(Frame*, StorageType) const OVERRIDE { return f alse; }
330 }; 336 };
331 337
332 void fillWithEmptyClients(Page::PageClients&); 338 void fillWithEmptyClients(Page::PageClients&);
333 339
334 } 340 }
335 341
336 #endif // EmptyClients_h 342 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698