| Index: chrome/browser/net/chrome_url_request_context.cc
|
| ===================================================================
|
| --- chrome/browser/net/chrome_url_request_context.cc (revision 92669)
|
| +++ chrome/browser/net/chrome_url_request_context.cc (working copy)
|
| @@ -10,14 +10,16 @@
|
| #include "base/synchronization/waitable_event.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/io_thread.h"
|
| -#include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_io_data.h"
|
| +#include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "content/browser/browser_thread.h"
|
| #include "content/common/notification_service.h"
|
| #include "net/base/cookie_store.h"
|
| +#include "net/ftp/ftp_transaction_factory.h"
|
| +#include "net/http/http_transaction_factory.h"
|
| #include "net/http/http_util.h"
|
| #include "webkit/glue/webkit_glue.h"
|
|
|
| @@ -361,6 +363,10 @@
|
| URLRequestContext::CopyFrom(other);
|
|
|
| // Copy ChromeURLRequestContext parameters.
|
| + set_appcache_service(other->appcache_service());
|
| + set_blob_storage_context(other->blob_storage_context());
|
| + set_file_system_context(other->file_system_context());
|
| + set_extension_info_map(other->extension_info_map_);
|
| // ChromeURLDataManagerBackend is unique per context.
|
| set_is_incognito(other->is_incognito());
|
| }
|
| @@ -379,6 +385,9 @@
|
| ChromeURLRequestContext::~ChromeURLRequestContext() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
|
|
| + if (appcache_service_.get() && appcache_service_->request_context() == this)
|
| + appcache_service_->set_request_context(NULL);
|
| +
|
| NotificationService::current()->Notify(
|
| chrome::NOTIFICATION_URL_REQUEST_CONTEXT_RELEASED,
|
| Source<net::URLRequestContext>(this),
|
|
|