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

Unified Diff: net/url_request/url_request_context.h

Issue 3391028: Reland r59972: Eagerly set the IO loop used for OCSP. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address wtc comments. Created 10 years, 3 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 | « net/ocsp/nss_ocsp.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context.h
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index 6ddc940c2d623151bb142b0194fa02a5c51e4080..548d0c68c898585075f3584813523bcf3ac00747 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -104,6 +104,11 @@ class URLRequestContext
referrer_charset_ = charset;
}
+ // Controls whether or not the URLRequestContext considers itself to be the
+ // "main" URLRequestContext.
+ bool is_main() const { return is_main_; }
+ void set_is_main(bool is_main) { is_main_ = is_main; }
+
protected:
friend class base::RefCountedThreadSafe<URLRequestContext>;
@@ -131,6 +136,9 @@ class URLRequestContext
std::string referrer_charset_;
private:
+ // Indicates whether or not this is the main URLRequestContext.
+ bool is_main_;
+
DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
};
« no previous file with comments | « net/ocsp/nss_ocsp.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698