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

Unified Diff: blimp/engine/common/blimp_browser_context.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: Add new system url request context getter to the blimp engine. 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
Index: blimp/engine/common/blimp_browser_context.h
diff --git a/blimp/engine/common/blimp_browser_context.h b/blimp/engine/common/blimp_browser_context.h
index 76f0c8b687fceb1fd02424d733d59a1ef6de533c..83f782268d10a772b618ae0c0d6dc23feecba85d 100644
--- a/blimp/engine/common/blimp_browser_context.h
+++ b/blimp/engine/common/blimp_browser_context.h
@@ -8,6 +8,7 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "blimp/engine/app/blimp_system_url_request_context_getter.h"
#include "blimp/engine/app/blimp_url_request_context_getter.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/content_browser_client.h"
@@ -57,12 +58,17 @@ class BlimpBrowserContext : public content::BrowserContext {
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector request_interceptors);
+ // Provides a URLRequestContextGetter for system requests (e.g. metrics
+ // uploads).
+ net::URLRequestContextGetter* GetSystemRequestContext();
+
private:
// Performs initialization of the BlimpBrowserContext while IO is still
// allowed on the current thread.
void InitWhileIOAllowed();
scoped_ptr<BlimpResourceContext> resource_context_;
+ scoped_refptr<BlimpSystemURLRequestContextGetter> system_context_getter_;
bool ignore_certificate_errors_;
scoped_ptr<content::PermissionManager> permission_manager_;
bool off_the_record_;

Powered by Google App Engine
This is Rietveld 408576698