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

Side by Side Diff: chrome_frame/npapi_url_request.cc

Issue 5998006: Clean up Automation and Chrome Frame IPC code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « chrome_frame/npapi_url_request.h ('k') | chrome_frame/plugin_url_request.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome_frame/npapi_url_request.h" 5 #include "chrome_frame/npapi_url_request.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "chrome_frame/np_browser_functions.h" 8 #include "chrome_frame/np_browser_functions.h"
9 #include "chrome_frame/np_utils.h" 9 #include "chrome_frame/np_utils.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 StopAll(); 208 StopAll();
209 } 209 }
210 210
211 // PluginUrlRequestManager implementation 211 // PluginUrlRequestManager implementation
212 PluginUrlRequestManager::ThreadSafeFlags 212 PluginUrlRequestManager::ThreadSafeFlags
213 NPAPIUrlRequestManager::GetThreadSafeFlags() { 213 NPAPIUrlRequestManager::GetThreadSafeFlags() {
214 return PluginUrlRequestManager::NOT_THREADSAFE; 214 return PluginUrlRequestManager::NOT_THREADSAFE;
215 } 215 }
216 216
217 void NPAPIUrlRequestManager::StartRequest(int request_id, 217 void NPAPIUrlRequestManager::StartRequest(int request_id,
218 const IPC::AutomationURLRequest& request_info) { 218 const AutomationURLRequest& request_info) {
219 scoped_refptr<NPAPIUrlRequest> new_request(new NPAPIUrlRequest(instance_)); 219 scoped_refptr<NPAPIUrlRequest> new_request(new NPAPIUrlRequest(instance_));
220 DCHECK(new_request); 220 DCHECK(new_request);
221 if (new_request->Initialize(this, request_id, request_info.url, 221 if (new_request->Initialize(this, request_id, request_info.url,
222 request_info.method, request_info.referrer, 222 request_info.method, request_info.referrer,
223 request_info.extra_request_headers, 223 request_info.extra_request_headers,
224 request_info.upload_data, 224 request_info.upload_data,
225 static_cast<ResourceType::Type>(request_info.resource_type), 225 static_cast<ResourceType::Type>(request_info.resource_type),
226 enable_frame_busting_, 226 enable_frame_busting_,
227 request_info.load_flags)) { 227 request_info.load_flags)) {
228 DCHECK(request_map_.find(request_id) == request_map_.end()); 228 DCHECK(request_map_.find(request_id) == request_map_.end());
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 } 418 }
419 419
420 scoped_refptr<NPAPIUrlRequest> NPAPIUrlRequestManager::LookupRequest( 420 scoped_refptr<NPAPIUrlRequest> NPAPIUrlRequestManager::LookupRequest(
421 int request_id) { 421 int request_id) {
422 RequestMap::iterator index = request_map_.find(request_id); 422 RequestMap::iterator index = request_map_.find(request_id);
423 if (index != request_map_.end()) 423 if (index != request_map_.end())
424 return index->second; 424 return index->second;
425 return NULL; 425 return NULL;
426 } 426 }
OLDNEW
« no previous file with comments | « chrome_frame/npapi_url_request.h ('k') | chrome_frame/plugin_url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698