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

Side by Side Diff: Source/core/fetch/ResourceLoader.h

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html 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/fetch/ResourceFetcher.cpp ('k') | Source/core/fetch/ResourceLoader.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) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 private: 101 private:
102 ResourceLoader(ResourceLoaderHost*, Resource*, const ResourceLoaderOptions&) ; 102 ResourceLoader(ResourceLoaderHost*, Resource*, const ResourceLoaderOptions&) ;
103 103
104 void init(const ResourceRequest&); 104 void init(const ResourceRequest&);
105 void requestSynchronously(); 105 void requestSynchronously();
106 106
107 void didFinishLoadingOnePart(double finishTime, int64_t encodedDataLength); 107 void didFinishLoadingOnePart(double finishTime, int64_t encodedDataLength);
108 108
109 bool responseNeedsAccessControlCheck() const; 109 bool responseNeedsAccessControlCheck() const;
110 110
111 void didComplete();
112
111 ResourceRequest& applyOptions(ResourceRequest&) const; 113 ResourceRequest& applyOptions(ResourceRequest&) const;
112 114
113 OwnPtr<blink::WebURLLoader> m_loader; 115 OwnPtr<blink::WebURLLoader> m_loader;
114 RefPtrWillBeMember<ResourceLoaderHost> m_host; 116 RefPtrWillBeMember<ResourceLoaderHost> m_host;
115 117
116 ResourceRequest m_request; 118 ResourceRequest m_request;
117 ResourceRequest m_originalRequest; // Before redirects. 119 ResourceRequest m_originalRequest; // Before redirects.
118 120
119 bool m_notifiedLoadComplete; 121 bool m_notifiedLoadComplete;
120 122
(...skipping 24 matching lines...) Expand all
145 // Used for sanity checking to make sure we don't experience illegal state 147 // Used for sanity checking to make sure we don't experience illegal state
146 // transitions. 148 // transitions.
147 ConnectionState m_connectionState; 149 ConnectionState m_connectionState;
148 150
149 OwnPtr<RequestCountTracker> m_requestCountTracker; 151 OwnPtr<RequestCountTracker> m_requestCountTracker;
150 }; 152 };
151 153
152 } 154 }
153 155
154 #endif 156 #endif
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/fetch/ResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698