diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 21:37:04 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 21:37:04 +0000 |
commit | a8af771d9040b87f64b3a85131cfa0e265ac5639 (patch) | |
tree | 6cd5020fcda0b6616be7fec09bd2307743763fc0 /chrome/browser/net/chrome_url_request_context.h | |
parent | 23cc9a18ab9c4893e3cad94c3683e7ffecefcbf0 (diff) | |
download | chromium_src-a8af771d9040b87f64b3a85131cfa0e265ac5639.zip chromium_src-a8af771d9040b87f64b3a85131cfa0e265ac5639.tar.gz chromium_src-a8af771d9040b87f64b3a85131cfa0e265ac5639.tar.bz2 |
ChromeURLRequestContext fallout
Fix the issues caused by static_cast<ChromeURLRequestContext*>.
There were assumptions in the code that a URLRequestContext*
will always be ChromeURLRequestContext* and resulting
'static_cast's. This assumption is no longer true. Instead,
URLlRequestContext now has a member GetChromeURLRequestContext
that returns a ChromeURLRequestContext* if it really that type.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/160332
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/chrome_url_request_context.h')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h index debee5c..f4baea6 100644 --- a/chrome/browser/net/chrome_url_request_context.h +++ b/chrome/browser/net/chrome_url_request_context.h @@ -74,10 +74,11 @@ class ChromeURLRequestContext : public URLRequestContext, // Gets the Privacy Blacklist, if any for this context. const Blacklist* blacklist() const { return blacklist_; } -private: + protected: // Private constructor, use the static factory methods instead. This is // expected to be called on the UI thread. ChromeURLRequestContext(Profile* profile); + ChromeURLRequestContext(ChromeURLRequestContext* other); // Create a request context for media resources from a regular request // context. This helper method is called from CreateOriginalForMedia and |