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

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: Comment updates and syncing ptr migration. Includes rebase. 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
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | blimp/engine/app/blimp_system_url_request_context_getter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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_
OLDNEW
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | blimp/engine/app/blimp_system_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698