diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 18:45:45 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 18:45:45 +0000 |
commit | 3dac4560bd1ceb6abe94aaabc0bbee7ac7a87236 (patch) | |
tree | 456a018e0150cb85f942fdc6c4afda5b68f6c162 /chrome/browser/net/chrome_url_request_context.h | |
parent | 21b316afcfbe457fcab1ab1fd749595e1fe31696 (diff) | |
download | chromium_src-3dac4560bd1ceb6abe94aaabc0bbee7ac7a87236.zip chromium_src-3dac4560bd1ceb6abe94aaabc0bbee7ac7a87236.tar.gz chromium_src-3dac4560bd1ceb6abe94aaabc0bbee7ac7a87236.tar.bz2 |
Fix an invalid DCHECK for media request context
BUG=9082
Since I forwarded CreateOffTheRecordForMedia to
CreateOriginalForMedia, it triggers a DCHECK. Since the
implementation of off the record media cache is not going to be
implemented soon, I duplicated the implementation of
CreateOriginalForMedia.
Review URL: http://codereview.chromium.org/42467
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12297 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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h index df8cc9b..2215199 100644 --- a/chrome/browser/net/chrome_url_request_context.h +++ b/chrome/browser/net/chrome_url_request_context.h @@ -61,6 +61,12 @@ class ChromeURLRequestContext : public URLRequestContext, // expected to be called on the UI thread. ChromeURLRequestContext(Profile* profile); + // Create a request context for media resources from a regular request + // context. This helper method is called from CreateOriginalForMedia and + // CreateOffTheRecordForMedia. + static ChromeURLRequestContext* CreateRequestContextForMedia(Profile* profile, + const FilePath& disk_cache_path); + // NotificationObserver implementation. virtual void Observe(NotificationType type, const NotificationSource& source, |