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

Side by Side Diff: blimp/engine/app/blimp_system_url_request_context_getter.h

Issue 1864163003: Add new system url request context getter to the blimp engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure only have one system URLRequestContextGetter around at a time. Created 4 years, 8 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
OLDNEW
(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 "base/memory/scoped_ptr.h"
11 #include "content/public/browser/content_browser_client.h"
12 #include "net/url_request/url_request_context_getter.h"
13
14 namespace base {
15 class MessageLoop;
16 class SingleThreadTaskRunner;
17 }
18
19 namespace blimp {
20 namespace engine {
21
22 // 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.
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 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.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698