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

Side by Side Diff: webkit/child/resource_loader_bridge.h

Issue 220553002: Revert of Introduce an intra-priority level sorting value - Chromium Side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // The intent of this file is to provide a type-neutral abstraction between 5 // The intent of this file is to provide a type-neutral abstraction between
6 // Chrome and WebKit for resource loading. This pure-virtual interface is 6 // Chrome and WebKit for resource loading. This pure-virtual interface is
7 // implemented by the embedder. 7 // implemented by the embedder.
8 // 8 //
9 // One of these objects will be created by WebKit for each request. WebKit 9 // One of these objects will be created by WebKit for each request. WebKit
10 // will own the pointer to the bridge, and will delete it when the request is 10 // will own the pointer to the bridge, and will delete it when the request is
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // the peer is still valid. 140 // the peer is still valid.
141 virtual void Cancel() = 0; 141 virtual void Cancel() = 0;
142 142
143 // Call this method to suspend or resume a load that is in progress. This 143 // Call this method to suspend or resume a load that is in progress. This
144 // method may only be called after a successful call to the Start method. 144 // method may only be called after a successful call to the Start method.
145 virtual void SetDefersLoading(bool value) = 0; 145 virtual void SetDefersLoading(bool value) = 0;
146 146
147 // Call this method when the priority of the requested resource changes after 147 // Call this method when the priority of the requested resource changes after
148 // Start() has been called. This method may only be called after a successful 148 // Start() has been called. This method may only be called after a successful
149 // call to the Start method. 149 // call to the Start method.
150 virtual void DidChangePriority(net::RequestPriority new_priority, 150 virtual void DidChangePriority(net::RequestPriority new_priority) = 0;
151 int intra_priority_value) = 0;
152 151
153 // Call this method to load the resource synchronously (i.e., in one shot). 152 // Call this method to load the resource synchronously (i.e., in one shot).
154 // This is an alternative to the Start method. Be warned that this method 153 // This is an alternative to the Start method. Be warned that this method
155 // will block the calling thread until the resource is fully downloaded or an 154 // will block the calling thread until the resource is fully downloaded or an
156 // error occurs. It could block the calling thread for a long time, so only 155 // error occurs. It could block the calling thread for a long time, so only
157 // use this if you really need it! There is also no way for the caller to 156 // use this if you really need it! There is also no way for the caller to
158 // interrupt this method. Errors are reported via the status field of the 157 // interrupt this method. Errors are reported via the status field of the
159 // response parameter. 158 // response parameter.
160 virtual void SyncLoad(SyncLoadResponse* response) = 0; 159 virtual void SyncLoad(SyncLoadResponse* response) = 0;
161 160
162 protected: 161 protected:
163 // Construction must go through 162 // Construction must go through
164 // WebKitPlatformSupportImpl::CreateResourceLoader() 163 // WebKitPlatformSupportImpl::CreateResourceLoader()
165 // For HTTP(S) POST requests, the AppendDataToUpload and AppendFileToUpload 164 // For HTTP(S) POST requests, the AppendDataToUpload and AppendFileToUpload
166 // methods may be called to construct the body of the request. 165 // methods may be called to construct the body of the request.
167 WEBKIT_CHILD_EXPORT ResourceLoaderBridge(); 166 WEBKIT_CHILD_EXPORT ResourceLoaderBridge();
168 167
169 private: 168 private:
170 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); 169 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge);
171 }; 170 };
172 171
173 } // namespace webkit_glue 172 } // namespace webkit_glue
174 173
175 #endif // WEBKIT_CHILD_RESOURCE_LOADER_BRIDGE_H_ 174 #endif // WEBKIT_CHILD_RESOURCE_LOADER_BRIDGE_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698