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

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

Issue 1229743005: Fix virtual/override/final usage in Source/core/{fetch,loader,streams,xmlhttprequest}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 class ResourceLoader; 59 class ResourceLoader;
60 class ThreadedDataReceiver; 60 class ThreadedDataReceiver;
61 61
62 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFi nalized<DocumentLoader>, private RawResourceClient { 62 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFi nalized<DocumentLoader>, private RawResourceClient {
63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DocumentLoader); 63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DocumentLoader);
64 public: 64 public:
65 static PassRefPtrWillBeRawPtr<DocumentLoader> create(LocalFrame* frame, const ResourceRequest& request, const SubstituteData& data) 65 static PassRefPtrWillBeRawPtr<DocumentLoader> create(LocalFrame* frame, const ResourceRequest& request, const SubstituteData& data)
66 { 66 {
67 return adoptRefWillBeNoop(new DocumentLoader(frame, request, data)); 67 return adoptRefWillBeNoop(new DocumentLoader(frame, request, data));
68 } 68 }
69 virtual ~DocumentLoader(); 69 ~DocumentLoader() override;
70 70
71 LocalFrame* frame() const { return m_frame; } 71 LocalFrame* frame() const { return m_frame; }
72 72
73 virtual void detachFromFrame(); 73 virtual void detachFromFrame();
74 74
75 unsigned long mainResourceIdentifier() const; 75 unsigned long mainResourceIdentifier() const;
76 76
77 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, con st String& source, Document*); 77 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, con st String& source, Document*);
78 78
79 const AtomicString& mimeType() const; 79 const AtomicString& mimeType() const;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void clearMainResourceHandle(); 166 void clearMainResourceHandle();
167 167
168 bool maybeCreateArchive(); 168 bool maybeCreateArchive();
169 169
170 void prepareSubframeArchiveLoadIfNeeded(); 170 void prepareSubframeArchiveLoadIfNeeded();
171 171
172 void willSendRequest(ResourceRequest&, const ResourceResponse&); 172 void willSendRequest(ResourceRequest&, const ResourceResponse&);
173 void finishedLoading(double finishTime); 173 void finishedLoading(double finishTime);
174 void mainReceivedError(const ResourceError&); 174 void mainReceivedError(const ResourceError&);
175 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); 175 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&);
176 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc eResponse&) override final; 176 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons e&) final;
177 virtual void updateRequest(Resource*, const ResourceRequest&) override f inal; 177 void updateRequest(Resource*, const ResourceRequest&) final;
178 virtual void responseReceived(Resource*, const ResourceResponse&, PassOw nPtr<WebDataConsumerHandle>) override final; 178 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web DataConsumerHandle>) final;
179 virtual void dataReceived(Resource*, const char* data, unsigned length) override final; 179 void dataReceived(Resource*, const char* data, unsigned length) final;
180 virtual void notifyFinished(Resource*) override final; 180 void notifyFinished(Resource*) final;
181 181
182 bool maybeLoadEmpty(); 182 bool maybeLoadEmpty();
183 183
184 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse& ); 184 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse& );
185 185
186 bool shouldContinueForResponse() const; 186 bool shouldContinueForResponse() const;
187 187
188 RawPtrWillBeMember<LocalFrame> m_frame; 188 RawPtrWillBeMember<LocalFrame> m_frame;
189 PersistentWillBeMember<ResourceFetcher> m_fetcher; 189 PersistentWillBeMember<ResourceFetcher> m_fetcher;
190 190
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; 226 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
227 ClientHintsPreferences m_clientHintsPreferences; 227 ClientHintsPreferences m_clientHintsPreferences;
228 InitialScrollState m_initialScrollState; 228 InitialScrollState m_initialScrollState;
229 }; 229 };
230 230
231 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 231 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
232 232
233 } // namespace blink 233 } // namespace blink
234 234
235 #endif // DocumentLoader_h 235 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « Source/core/fetch/XSLStyleSheetResource.h ('k') | Source/core/loader/DocumentThreadableLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698