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

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

Issue 113069: Content-Dispositon handling fix #2. Still WiP. Uploading as a check point.... Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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, which also provides a factory method Create 7 // implemented by the embedder, which also provides a factory method Create
8 // to instantiate this object. 8 // to instantiate this object.
9 // 9 //
10 // One of these objects will be created by WebKit for each request. WebKit 10 // One of these objects will be created by WebKit for each request. WebKit
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 const GURL& url, 184 const GURL& url,
185 const GURL& policy_url, 185 const GURL& policy_url,
186 const GURL& referrer, 186 const GURL& referrer,
187 const std::string& frame_origin, 187 const std::string& frame_origin,
188 const std::string& main_frame_origin, 188 const std::string& main_frame_origin,
189 const std::string& headers, 189 const std::string& headers,
190 int load_flags, 190 int load_flags,
191 int requestor_pid, 191 int requestor_pid,
192 ResourceType::Type request_type, 192 ResourceType::Type request_type,
193 int app_cache_context_id, 193 int app_cache_context_id,
194 int routing_id); 194 int routing_id,
195 const std::string& fallback_charset);
195 196
196 // Call this method before calling Start() to append a chunk of binary data 197 // Call this method before calling Start() to append a chunk of binary data
197 // to the request body. May only be used with HTTP(S) POST requests. 198 // to the request body. May only be used with HTTP(S) POST requests.
198 virtual void AppendDataToUpload(const char* data, int data_len) = 0; 199 virtual void AppendDataToUpload(const char* data, int data_len) = 0;
199 200
200 // Call this method before calling Start() to append the contents of a file 201 // Call this method before calling Start() to append the contents of a file
201 // to the request body. May only be used with HTTP(S) POST requests. 202 // to the request body. May only be used with HTTP(S) POST requests.
202 void AppendFileToUpload(const FilePath& file_path) { 203 void AppendFileToUpload(const FilePath& file_path) {
203 AppendFileRangeToUpload(file_path, 0, kuint64max); 204 AppendFileRangeToUpload(file_path, 0, kuint64max);
204 } 205 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // construction must go through Create() 241 // construction must go through Create()
241 ResourceLoaderBridge(); 242 ResourceLoaderBridge();
242 243
243 private: 244 private:
244 DISALLOW_EVIL_CONSTRUCTORS(ResourceLoaderBridge); 245 DISALLOW_EVIL_CONSTRUCTORS(ResourceLoaderBridge);
245 }; 246 };
246 247
247 } // namespace webkit_glue 248 } // namespace webkit_glue
248 249
249 #endif // RESOURCE_LOADER_BRIDGE_ 250 #endif // RESOURCE_LOADER_BRIDGE_
OLDNEW
« no previous file with comments | « webkit/glue/resource_handle_impl.cc ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698