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

Unified Diff: chrome/browser/automation/automation_profile_impl.h

Issue 258008: Move initialization of ChromeURLRequestContexts to the IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again, just in case Created 11 years, 2 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 | « no previous file | chrome/browser/automation/automation_profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_profile_impl.h
===================================================================
--- chrome/browser/automation/automation_profile_impl.h (revision 29872)
+++ chrome/browser/automation/automation_profile_impl.h (working copy)
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_
#define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROFILE_IMPL_H_
+#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/profile.h"
#include "net/url_request/url_request_context.h"
@@ -19,6 +20,8 @@
tab_handle_(0) {
}
+ virtual ~AutomationProfileImpl();
+
void Initialize(Profile* original_profile,
IPC::Message::Sender* automation_client);
@@ -48,9 +51,6 @@
virtual Profile* GetOriginalProfile() {
return original_profile_->GetOriginalProfile();
}
- virtual ChromeAppCacheService* GetAppCacheService() {
- return original_profile_->GetAppCacheService();
- }
virtual VisitedLinkMaster* GetVisitedLinkMaster() {
return original_profile_->GetVisitedLinkMaster();
}
@@ -126,13 +126,13 @@
virtual ThumbnailStore* GetThumbnailStore() {
return original_profile_->GetThumbnailStore();
}
- virtual URLRequestContext* GetRequestContext() {
- return alternate_reqeust_context_;
+ virtual URLRequestContextGetter* GetRequestContext() {
+ return alternate_request_context_;
}
- virtual URLRequestContext* GetRequestContextForMedia() {
+ virtual URLRequestContextGetter* GetRequestContextForMedia() {
return original_profile_->GetRequestContextForMedia();
}
- virtual URLRequestContext* GetRequestContextForExtensions() {
+ virtual URLRequestContextGetter* GetRequestContextForExtensions() {
return original_profile_->GetRequestContextForExtensions();
}
virtual net::SSLConfigService* GetSSLConfigService() {
@@ -214,8 +214,7 @@
protected:
Profile* original_profile_;
- scoped_refptr<net::CookieStore> alternate_cookie_store_;
- scoped_refptr<URLRequestContext> alternate_reqeust_context_;
+ ChromeURLRequestContextGetter* alternate_request_context_;
int tab_handle_;
private:
« no previous file with comments | « no previous file | chrome/browser/automation/automation_profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698