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

Side by Side Diff: content/shell/shell_url_request_context_getter.cc

Issue 9810022: Remove DONTUSEME_GetCookieStore(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/shell_url_request_context_getter.h" 5 #include "content/shell/shell_url_request_context_getter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_split.h" 8 #include "base/string_split.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 NULL, 97 NULL,
98 main_backend); 98 main_backend);
99 storage_->set_http_transaction_factory(main_cache); 99 storage_->set_http_transaction_factory(main_cache);
100 100
101 storage_->set_job_factory(new net::URLRequestJobFactory); 101 storage_->set_job_factory(new net::URLRequestJobFactory);
102 } 102 }
103 103
104 return url_request_context_; 104 return url_request_context_;
105 } 105 }
106 106
107 net::CookieStore* ShellURLRequestContextGetter::DONTUSEME_GetCookieStore() {
108 if (BrowserThread::CurrentlyOn(BrowserThread::IO))
109 return GetURLRequestContext()->cookie_store();
110 NOTIMPLEMENTED();
111 return NULL;
112 }
113
114 scoped_refptr<base::MessageLoopProxy> 107 scoped_refptr<base::MessageLoopProxy>
115 ShellURLRequestContextGetter::GetIOMessageLoopProxy() const { 108 ShellURLRequestContextGetter::GetIOMessageLoopProxy() const {
116 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 109 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
117 } 110 }
118 111
119 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { 112 net::HostResolver* ShellURLRequestContextGetter::host_resolver() {
120 return url_request_context_->host_resolver(); 113 return url_request_context_->host_resolver();
121 } 114 }
122 115
123 } // namespace content 116 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_url_request_context_getter.h ('k') | net/url_request/url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698