Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ | |
| 6 #define CHROME_BROWSER_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/common/net/url_request_context_getter.h" | |
| 10 | |
| 11 class IOThread; | |
| 12 | |
| 13 class SystemURLRequestContextGetter : public URLRequestContextGetter { | |
| 14 public: | |
| 15 explicit SystemURLRequestContextGetter(IOThread* io_thread); | |
|
willchan no longer on Chromium
2011/02/08 22:52:04
We try to make sure there's only 1 URLRequestConte
battre
2011/02/14 18:22:05
Done.
| |
| 16 virtual ~SystemURLRequestContextGetter(); | |
| 17 | |
| 18 // Implementation for UrlRequestContextGetter. | |
| 19 virtual net::URLRequestContext* GetURLRequestContext(); | |
| 20 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() const; | |
| 21 | |
| 22 private: | |
| 23 IOThread* io_thread_; // Weak pointer, owned by BrowserProcess. | |
|
willchan no longer on Chromium
2011/02/08 22:52:04
IOThread* const io_thread_;
battre
2011/02/14 18:22:05
Done.
| |
| 24 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | |
| 25 }; | |
|
willchan no longer on Chromium
2011/02/08 22:52:04
Please add a LeakTracker for this class and assert
battre
2011/02/14 18:22:05
Done.
| |
| 26 | |
| 27 #endif // CHROME_BROWSER_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ | |
| OLD | NEW |