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

Side by Side Diff: chrome/browser/download/save_package.h

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review 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
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 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 typedef std::queue<SaveItem*> SaveItemQueue; 250 typedef std::queue<SaveItem*> SaveItemQueue;
251 // A queue for items we are about to start saving. 251 // A queue for items we are about to start saving.
252 SaveItemQueue waiting_item_queue_; 252 SaveItemQueue waiting_item_queue_;
253 253
254 typedef base::hash_map<int32, SaveItem*> SavedItemMap; 254 typedef base::hash_map<int32, SaveItem*> SavedItemMap;
255 // saved_success_items_ is map of all saving job which are successfully saved. 255 // saved_success_items_ is map of all saving job which are successfully saved.
256 SavedItemMap saved_success_items_; 256 SavedItemMap saved_success_items_;
257 257
258 // The request context which provides application-specific context for 258 // The request context which provides application-specific context for
259 // URLRequest instances. 259 // net::URLRequest instances.
260 scoped_refptr<URLRequestContextGetter> request_context_getter_; 260 scoped_refptr<URLRequestContextGetter> request_context_getter_;
261 261
262 // Non-owning pointer for handling file writing on the file thread. 262 // Non-owning pointer for handling file writing on the file thread.
263 SaveFileManager* file_manager_; 263 SaveFileManager* file_manager_;
264 264
265 TabContents* tab_contents_; 265 TabContents* tab_contents_;
266 266
267 // We use a fake DownloadItem here in order to reuse the DownloadItemView. 267 // We use a fake DownloadItem here in order to reuse the DownloadItemView.
268 // This class owns the pointer. 268 // This class owns the pointer.
269 DownloadItem* download_; 269 DownloadItem* download_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 friend class SavePackageTest; 316 friend class SavePackageTest;
317 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames); 317 FRIEND_TEST_ALL_PREFIXES(SavePackageTest, TestSuggestedSaveNames);
318 318
319 ScopedRunnableMethodFactory<SavePackage> method_factory_; 319 ScopedRunnableMethodFactory<SavePackage> method_factory_;
320 320
321 DISALLOW_COPY_AND_ASSIGN(SavePackage); 321 DISALLOW_COPY_AND_ASSIGN(SavePackage);
322 }; 322 };
323 323
324 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_ 324 #endif // CHROME_BROWSER_DOWNLOAD_SAVE_PACKAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698