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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 2145103003: Request the Identity API's Uber Token without a Channel ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index f373eaa0acd0d871917a087d077e67e6676fa8e5..ad287968e92e10289468b10f870d6e953740d81c 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -265,22 +265,6 @@ class ProfileIOData {
// Get platform ClientCertStore. May return nullptr.
std::unique_ptr<net::ClientCertStore> CreateClientCertStore();
- protected:
- // A URLRequestContext for media that owns its HTTP factory, to ensure
- // it is deleted.
- class MediaRequestContext : public net::URLRequestContext {
- public:
- MediaRequestContext();
-
- void SetHttpTransactionFactory(
- std::unique_ptr<net::HttpTransactionFactory> http_factory);
-
- private:
- ~MediaRequestContext() override;
-
- std::unique_ptr<net::HttpTransactionFactory> http_factory_;
- };
-
// A URLRequestContext for apps that owns its cookie store and HTTP factory,
// to ensure they are deleted.
class AppRequestContext : public net::URLRequestContext {
@@ -306,6 +290,22 @@ class ProfileIOData {
std::unique_ptr<net::URLRequestJobFactory> job_factory_;
};
+ protected:
anthonyvd 2016/07/13 18:36:08 This diff is pretty bad. This is making AppRequest
nharper 2016/07/13 20:04:47 The reason for using the AppRequestContext was to
anthonyvd 2016/07/13 20:33:46 I see. I initially tried to use it because it's no
+ // A URLRequestContext for media that owns its HTTP factory, to ensure
+ // it is deleted.
+ class MediaRequestContext : public net::URLRequestContext {
+ public:
+ MediaRequestContext();
+
+ void SetHttpTransactionFactory(
+ std::unique_ptr<net::HttpTransactionFactory> http_factory);
+
+ private:
+ ~MediaRequestContext() override;
+
+ std::unique_ptr<net::HttpTransactionFactory> http_factory_;
+ };
+
// Created on the UI thread, read on the IO thread during ProfileIOData lazy
// initialization.
struct ProfileParams {
« no previous file with comments | « chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698