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

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

Issue 7690006: Revert 97446 - Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/hash_tables.h" 11 #include "base/hash_tables.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "chrome/browser/profiles/profile_io_data.h" 13 #include "chrome/browser/profiles/profile_io_data.h"
14 14
15 namespace chrome_browser_net {
16 class Predictor;
17 }
18
19 namespace net { 15 namespace net {
20 class HttpTransactionFactory; 16 class HttpTransactionFactory;
21 } // namespace net 17 } // namespace net
22 18
23 class ProfileImplIOData : public ProfileIOData { 19 class ProfileImplIOData : public ProfileIOData {
24 public: 20 public:
25 class Handle { 21 class Handle {
26 public: 22 public:
27 explicit Handle(Profile* profile); 23 explicit Handle(Profile* profile);
28 ~Handle(); 24 ~Handle();
29 25
30 bool HasMainRequestContext() const { 26 bool HasMainRequestContext() const {
31 return main_request_context_getter_ != NULL; 27 return main_request_context_getter_ != NULL;
32 } 28 }
33 29
34 // Init() must be called before ~Handle(). It records all the necessary 30 // Init() must be called before ~Handle(). It records all the necessary
35 // parameters needed to construct a ChromeURLRequestContextGetter. 31 // parameters needed to construct a ChromeURLRequestContextGetter.
36 void Init(const FilePath& cookie_path, 32 void Init(const FilePath& cookie_path,
37 const FilePath& origin_bound_cert_path, 33 const FilePath& origin_bound_cert_path,
38 const FilePath& cache_path, 34 const FilePath& cache_path,
39 int cache_max_size, 35 int cache_max_size,
40 const FilePath& media_cache_path, 36 const FilePath& media_cache_path,
41 int media_cache_max_size, 37 int media_cache_max_size,
42 const FilePath& extensions_cookie_path, 38 const FilePath& extensions_cookie_path,
43 const FilePath& app_path, 39 const FilePath& app_path);
44 chrome_browser_net::Predictor* predictor,
45 PrefService* local_state,
46 IOThread* io_thread);
47 40
48 base::Callback<ChromeURLDataManagerBackend*(void)> 41 base::Callback<ChromeURLDataManagerBackend*(void)>
49 GetChromeURLDataManagerBackendGetter() const; 42 GetChromeURLDataManagerBackendGetter() const;
50 const content::ResourceContext& GetResourceContext() const; 43 const content::ResourceContext& GetResourceContext() const;
51 scoped_refptr<ChromeURLRequestContextGetter> 44 scoped_refptr<ChromeURLRequestContextGetter>
52 GetMainRequestContextGetter() const; 45 GetMainRequestContextGetter() const;
53 scoped_refptr<ChromeURLRequestContextGetter> 46 scoped_refptr<ChromeURLRequestContextGetter>
54 GetMediaRequestContextGetter() const; 47 GetMediaRequestContextGetter() const;
55 scoped_refptr<ChromeURLRequestContextGetter> 48 scoped_refptr<ChromeURLRequestContextGetter>
56 GetExtensionsRequestContextGetter() const; 49 GetExtensionsRequestContextGetter() const;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const std::string& app_id) const; 120 const std::string& app_id) const;
128 121
129 // Lazy initialization params. 122 // Lazy initialization params.
130 mutable scoped_ptr<LazyParams> lazy_params_; 123 mutable scoped_ptr<LazyParams> lazy_params_;
131 124
132 mutable scoped_refptr<ChromeURLRequestContext> media_request_context_; 125 mutable scoped_refptr<ChromeURLRequestContext> media_request_context_;
133 126
134 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; 127 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
135 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; 128 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_;
136 129
137 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_;
138
139 // Parameters needed for isolated apps. 130 // Parameters needed for isolated apps.
140 FilePath app_path_; 131 FilePath app_path_;
141 mutable bool clear_local_state_on_exit_; 132 mutable bool clear_local_state_on_exit_;
142 133
143 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 134 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
144 }; 135 };
145 136
146 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 137 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698