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

Side by Side Diff: net/url_request/url_request_job_manager.h

Issue 10911158: Pass on download or installation errors from WebstoreInstaller to the CompleteInstall function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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) 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 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_MANAGER_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_MANAGER_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_MANAGER_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 // request interceptors that determine how an URLRequestJob gets created to 21 // request interceptors that determine how an URLRequestJob gets created to
22 // handle an URLRequest. 22 // handle an URLRequest.
23 // 23 //
24 // MULTI-THREADING NOTICE: 24 // MULTI-THREADING NOTICE:
25 // URLRequest is designed to have all consumers on a single thread, and 25 // URLRequest is designed to have all consumers on a single thread, and
26 // so no attempt is made to support ProtocolFactory or Interceptor instances 26 // so no attempt is made to support ProtocolFactory or Interceptor instances
27 // being registered/unregistered or in any way poked on multiple threads. 27 // being registered/unregistered or in any way poked on multiple threads.
28 // However, we do support checking for supported schemes FROM ANY THREAD 28 // However, we do support checking for supported schemes FROM ANY THREAD
29 // (i.e., it is safe to call SupportsScheme on any thread). 29 // (i.e., it is safe to call SupportsScheme on any thread).
30 // 30 //
31 class URLRequestJobManager { 31 class NET_EXPORT URLRequestJobManager {
32 public: 32 public:
33 // Returns the singleton instance. 33 // Returns the singleton instance.
34 static URLRequestJobManager* GetInstance(); 34 static URLRequestJobManager* GetInstance();
35 35
36 // Instantiate an URLRequestJob implementation based on the registered 36 // Instantiate an URLRequestJob implementation based on the registered
37 // interceptors and protocol factories. This will always succeed in 37 // interceptors and protocol factories. This will always succeed in
38 // returning a job unless we are--in the extreme case--out of memory. 38 // returning a job unless we are--in the extreme case--out of memory.
39 URLRequestJob* CreateJob(URLRequest* request, 39 URLRequestJob* CreateJob(URLRequest* request,
40 NetworkDelegate* network_delegate) const; 40 NetworkDelegate* network_delegate) const;
41 41
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 mutable base::Lock lock_; 107 mutable base::Lock lock_;
108 FactoryMap factories_; 108 FactoryMap factories_;
109 InterceptorList interceptors_; 109 InterceptorList interceptors_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(URLRequestJobManager); 111 DISALLOW_COPY_AND_ASSIGN(URLRequestJobManager);
112 }; 112 };
113 113
114 } // namespace net 114 } // namespace net
115 115
116 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_MANAGER_H_ 116 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698