| 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 SingleThreadTaskRunner; | |
| 15 } | |
| 16 | |
| 17 namespace blimp { | |
| 18 namespace engine { | |
| 19 | |
| 20 // The URLRequestContextGetter for Blimp system requests that should not be | |
| 21 // associated with a user URL request context (e.g. metrics upload). | |
| 22 class BlimpSystemURLRequestContextGetter : public net::URLRequestContextGetter { | |
| 23 public: | |
| 24 BlimpSystemURLRequestContextGetter(); | |
| 25 | |
| 26 // net::URLRequestContextGetter implementation. | |
| 27 net::URLRequestContext* GetURLRequestContext() override; | |
| 28 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() | |
| 29 const override; | |
| 30 | |
| 31 private: | |
| 32 ~BlimpSystemURLRequestContextGetter() override; | |
| 33 | |
| 34 std::unique_ptr<net::URLRequestContext> url_request_context_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(BlimpSystemURLRequestContextGetter); | |
| 37 }; | |
| 38 | |
| 39 } // namespace engine | |
| 40 } // namespace blimp | |
| 41 | |
| 42 #endif // BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ | |
| OLD | NEW |