| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ |
| 6 #define BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ |
| 7 |
| 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" |
| 10 #include "content/public/browser/content_browser_client.h" |
| 11 #include "net/url_request/url_request_context_getter.h" |
| 12 |
| 13 namespace base { |
| 14 class MessageLoop; |
| 15 class SingleThreadTaskRunner; |
| 16 } |
| 17 |
| 18 namespace blimp { |
| 19 namespace engine { |
| 20 |
| 21 // The URLRequestContextGetter for Blimp system requests that should not be |
| 22 // associated with a user URL request context (e.g. metrics upload). |
| 23 class BlimpSystemURLRequestContextGetter : public net::URLRequestContextGetter { |
| 24 public: |
| 25 BlimpSystemURLRequestContextGetter(); |
| 26 |
| 27 // net::URLRequestContextGetter implementation. |
| 28 net::URLRequestContext* GetURLRequestContext() override; |
| 29 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() |
| 30 const override; |
| 31 |
| 32 private: |
| 33 ~BlimpSystemURLRequestContextGetter() override; |
| 34 |
| 35 std::unique_ptr<net::URLRequestContext> url_request_context_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(BlimpSystemURLRequestContextGetter); |
| 38 }; |
| 39 |
| 40 } // namespace engine |
| 41 } // namespace blimp |
| 42 |
| 43 #endif // BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ |
| OLD | NEW |