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

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

Issue 143783002: Make it possible for the embedder to run unload handlers in subframes. Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.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, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
4 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. 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 * 10 *
(...skipping 28 matching lines...) Expand all
39 #include "core/loader/FrameLoaderStateMachine.h" 39 #include "core/loader/FrameLoaderStateMachine.h"
40 #include "core/loader/FrameLoaderTypes.h" 40 #include "core/loader/FrameLoaderTypes.h"
41 #include "core/loader/HistoryItem.h" 41 #include "core/loader/HistoryItem.h"
42 #include "core/loader/MixedContentChecker.h" 42 #include "core/loader/MixedContentChecker.h"
43 #include "platform/Timer.h" 43 #include "platform/Timer.h"
44 #include "platform/network/ResourceRequest.h" 44 #include "platform/network/ResourceRequest.h"
45 #include "wtf/Forward.h" 45 #include "wtf/Forward.h"
46 #include "wtf/HashSet.h" 46 #include "wtf/HashSet.h"
47 #include "wtf/OwnPtr.h" 47 #include "wtf/OwnPtr.h"
48 48
49 namespace blink {
50 class WebViewImpl;
51 }
52
49 namespace WebCore { 53 namespace WebCore {
50 54
51 class Resource; 55 class Resource;
52 class Chrome; 56 class Chrome;
53 class DOMWrapperWorld; 57 class DOMWrapperWorld;
54 class DocumentLoader; 58 class DocumentLoader;
55 class Event; 59 class Event;
56 class FetchContext; 60 class FetchContext;
57 class FormState; 61 class FormState;
58 class FormSubmission; 62 class FormSubmission;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void saveDocumentAndScrollState(); 201 void saveDocumentAndScrollState();
198 void clearScrollPositionAndViewState(); 202 void clearScrollPositionAndViewState();
199 203
200 enum RestorePolicy { 204 enum RestorePolicy {
201 StandardRestore, 205 StandardRestore,
202 ForcedRestoreForSameDocumentHistoryNavigation 206 ForcedRestoreForSameDocumentHistoryNavigation
203 }; 207 };
204 void restoreScrollPositionAndViewState(RestorePolicy = StandardRestore); 208 void restoreScrollPositionAndViewState(RestorePolicy = StandardRestore);
205 209
206 private: 210 private:
211 friend class blink::WebViewImpl;
212
207 bool allChildrenAreComplete() const; // immediate children, not all descenda nts 213 bool allChildrenAreComplete() const; // immediate children, not all descenda nts
208 214
209 void completed(); 215 void completed();
210 216
211 void checkTimerFired(Timer<FrameLoader>*); 217 void checkTimerFired(Timer<FrameLoader>*);
212 void didAccessInitialDocumentTimerFired(Timer<FrameLoader>*); 218 void didAccessInitialDocumentTimerFired(Timer<FrameLoader>*);
213 219
214 bool prepareRequestForThisFrame(FrameLoadRequest&); 220 bool prepareRequestForThisFrame(FrameLoadRequest&);
215 void setReferrerForFrameRequest(ResourceRequest&, ShouldSendReferrer, Docume nt*); 221 void setReferrerForFrameRequest(ResourceRequest&, ShouldSendReferrer, Docume nt*);
216 FrameLoadType determineFrameLoadType(const FrameLoadRequest&); 222 FrameLoadType determineFrameLoadType(const FrameLoadRequest&);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 289
284 bool m_didAccessInitialDocument; 290 bool m_didAccessInitialDocument;
285 Timer<FrameLoader> m_didAccessInitialDocumentTimer; 291 Timer<FrameLoader> m_didAccessInitialDocumentTimer;
286 292
287 SandboxFlags m_forcedSandboxFlags; 293 SandboxFlags m_forcedSandboxFlags;
288 }; 294 };
289 295
290 } // namespace WebCore 296 } // namespace WebCore
291 297
292 #endif // FrameLoader_h 298 #endif // FrameLoader_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698