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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 10068036: RefCounted types should not have public destructors, chrome/browser/ part 5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix Created 8 years, 8 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 "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 initialized_on_UI_thread_ = true; 226 initialized_on_UI_thread_ = true;
227 227
228 // We need to make sure that content initializes its own data structures that 228 // We need to make sure that content initializes its own data structures that
229 // are associated with each ResourceContext because we might post this 229 // are associated with each ResourceContext because we might post this
230 // object to the IO thread after this function. 230 // object to the IO thread after this function.
231 BrowserContext::EnsureResourceContextInitialized(profile); 231 BrowserContext::EnsureResourceContextInitialized(profile);
232 } 232 }
233 233
234 ProfileIOData::AppRequestContext::AppRequestContext() {} 234 ProfileIOData::AppRequestContext::AppRequestContext() {}
235 ProfileIOData::AppRequestContext::~AppRequestContext() {}
236 235
237 void ProfileIOData::AppRequestContext::SetCookieStore( 236 void ProfileIOData::AppRequestContext::SetCookieStore(
238 net::CookieStore* cookie_store) { 237 net::CookieStore* cookie_store) {
239 cookie_store_ = cookie_store; 238 cookie_store_ = cookie_store;
240 set_cookie_store(cookie_store); 239 set_cookie_store(cookie_store);
241 } 240 }
242 241
243 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory( 242 void ProfileIOData::AppRequestContext::SetHttpTransactionFactory(
244 net::HttpTransactionFactory* http_factory) { 243 net::HttpTransactionFactory* http_factory) {
245 http_factory_.reset(http_factory); 244 http_factory_.reset(http_factory);
246 set_http_transaction_factory(http_factory); 245 set_http_transaction_factory(http_factory);
247 } 246 }
248 247
248 ProfileIOData::AppRequestContext::~AppRequestContext() {}
249
249 ProfileIOData::ProfileParams::ProfileParams() 250 ProfileIOData::ProfileParams::ProfileParams()
250 : is_incognito(false), 251 : is_incognito(false),
251 clear_local_state_on_exit(false), 252 clear_local_state_on_exit(false),
252 io_thread(NULL), 253 io_thread(NULL),
253 #if defined(ENABLE_NOTIFICATIONS) 254 #if defined(ENABLE_NOTIFICATIONS)
254 notification_service(NULL), 255 notification_service(NULL),
255 #endif 256 #endif
256 profile(NULL) {} 257 profile(NULL) {
258 }
259
257 ProfileIOData::ProfileParams::~ProfileParams() {} 260 ProfileIOData::ProfileParams::~ProfileParams() {}
258 261
259 ProfileIOData::ProfileIOData(bool is_incognito) 262 ProfileIOData::ProfileIOData(bool is_incognito)
260 : initialized_(false), 263 : initialized_(false),
261 ALLOW_THIS_IN_INITIALIZER_LIST(resource_context_(this)), 264 ALLOW_THIS_IN_INITIALIZER_LIST(resource_context_(this)),
262 initialized_on_UI_thread_(false) { 265 initialized_on_UI_thread_(false) {
263 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 266 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
264 } 267 }
265 268
266 ProfileIOData::~ProfileIOData() { 269 ProfileIOData::~ProfileIOData() {
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 #endif 543 #endif
541 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); 544 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this);
542 if (!posted) 545 if (!posted)
543 delete this; 546 delete this;
544 } 547 }
545 548
546 void ProfileIOData::set_server_bound_cert_service( 549 void ProfileIOData::set_server_bound_cert_service(
547 net::ServerBoundCertService* server_bound_cert_service) const { 550 net::ServerBoundCertService* server_bound_cert_service) const {
548 server_bound_cert_service_.reset(server_bound_cert_service); 551 server_bound_cert_service_.reset(server_bound_cert_service);
549 } 552 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/profiles/refcounted_profile_keyed_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698