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

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

Issue 1298253002: Remove reference counting from HttpNetworkSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed too much, back up a bit Created 5 years, 3 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
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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 bool initialized() const { 372 bool initialized() const {
373 return initialized_; 373 return initialized_;
374 } 374 }
375 375
376 // Destroys the ResourceContext first, to cancel any URLRequests that are 376 // Destroys the ResourceContext first, to cancel any URLRequests that are
377 // using it still, before we destroy the member variables that those 377 // using it still, before we destroy the member variables that those
378 // URLRequests may be accessing. 378 // URLRequests may be accessing.
379 void DestroyResourceContext(); 379 void DestroyResourceContext();
380 380
381 // Creates the HTTP network session
382 scoped_ptr<net::HttpNetworkSession> CreateHttpNetworkSession(
383 const ProfileParams& profile_params) const;
384
381 // Creates network session and main network transaction factory. 385 // Creates network session and main network transaction factory.
382 scoped_ptr<net::HttpCache> CreateMainHttpFactory( 386 scoped_ptr<net::HttpCache> CreateMainHttpFactory(
383 const ProfileParams* profile_params, 387 net::HttpNetworkSession* session,
384 net::HttpCache::BackendFactory* main_backend) const; 388 net::HttpCache::BackendFactory* main_backend) const;
385 389
386 // Creates network transaction factory. 390 // Creates network transaction factory.
387 scoped_ptr<net::HttpCache> CreateHttpFactory( 391 scoped_ptr<net::HttpCache> CreateHttpFactory(
388 net::HttpNetworkSession* shared_session, 392 net::HttpNetworkSession* shared_session,
389 net::HttpCache::BackendFactory* backend) const; 393 net::HttpCache::BackendFactory* backend) const;
390 394
391 void SetCookieSettingsForTesting( 395 void SetCookieSettingsForTesting(
392 content_settings::CookieSettings* cookie_settings); 396 content_settings::CookieSettings* cookie_settings);
393 397
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 595
592 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 596 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
593 bool initialized_on_UI_thread_; 597 bool initialized_on_UI_thread_;
594 598
595 const Profile::ProfileType profile_type_; 599 const Profile::ProfileType profile_type_;
596 600
597 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 601 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
598 }; 602 };
599 603
600 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 604 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698