Chromium Code Reviews| Index: blimp/engine/app/blimp_system_url_request_context_getter.h |
| diff --git a/blimp/engine/app/blimp_system_url_request_context_getter.h b/blimp/engine/app/blimp_system_url_request_context_getter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..39b135df495a86dba88a1294d19f7c4f48fcbf4a |
| --- /dev/null |
| +++ b/blimp/engine/app/blimp_system_url_request_context_getter.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ |
| +#define BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ |
| + |
| +#include "base/files/file_path.h" |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "content/public/browser/content_browser_client.h" |
| +#include "net/url_request/url_request_context_getter.h" |
| + |
| +namespace base { |
| +class MessageLoop; |
| +class SingleThreadTaskRunner; |
| +} |
| + |
| +namespace blimp { |
| +namespace engine { |
| + |
| +// The URLRequestContextGetter for blimp system requests |
|
Kevin M
2016/04/08 01:09:08
nit: Capitalize Blimp
Kevin M
2016/04/08 01:09:08
Add clarifying comment for what constitutes a "sys
Jess
2016/04/08 19:39:02
PTAL.
Jess
2016/04/08 19:39:02
Done.
|
| +class BlimpSystemURLRequestContextGetter : public net::URLRequestContextGetter { |
| + public: |
| + BlimpSystemURLRequestContextGetter(); |
| + |
| + // net::URLRequestContextGetter implementation. |
| + net::URLRequestContext* GetURLRequestContext() override; |
| + scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() |
| + const override; |
| + |
| + private: |
| + ~BlimpSystemURLRequestContextGetter() override; |
| + |
| + scoped_ptr<net::URLRequestContext> url_request_context_; |
|
Kevin M
2016/04/08 01:09:08
Switch to std::unique_ptr & remove scoped_ptr incl
Jess
2016/04/08 19:39:02
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(BlimpSystemURLRequestContextGetter); |
| +}; |
| + |
| +} // namespace engine |
| +} // namespace blimp |
| + |
| +#endif // BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_ |