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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fcb1c2a5ff02bc11e7cfbf194c9bbf0dd5c3dfcd
--- /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 "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 that should not be
+// associated with a user URL request context (e.g. metrics upload).
+class BlimpSystemURLRequestContextGetter : public net::URLRequestContextGetter {
+ public:
+ BlimpSystemURLRequestContextGetter();
+
+ // net::URLRequestContextGetter implementation.
+ net::URLRequestContext* GetURLRequestContext() override;
+ scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
+ const override;
+
+ private:
+ ~BlimpSystemURLRequestContextGetter() override;
+
+ std::unique_ptr<net::URLRequestContext> url_request_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpSystemURLRequestContextGetter);
+};
+
+} // namespace engine
+} // namespace blimp
+
+#endif // BLIMP_ENGINE_APP_BLIMP_SYSTEM_URL_REQUEST_CONTEXT_GETTER_H_
« 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