OLD | NEW |
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_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" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const FilePath& extensions_cookie_path, | 46 const FilePath& extensions_cookie_path, |
47 const FilePath& app_path, | 47 const FilePath& app_path, |
48 chrome_browser_net::Predictor* predictor, | 48 chrome_browser_net::Predictor* predictor, |
49 PrefService* local_state, | 49 PrefService* local_state, |
50 IOThread* io_thread, | 50 IOThread* io_thread, |
51 bool restore_old_session_cookies); | 51 bool restore_old_session_cookies); |
52 | 52 |
53 base::Callback<ChromeURLDataManagerBackend*(void)> | 53 base::Callback<ChromeURLDataManagerBackend*(void)> |
54 GetChromeURLDataManagerBackendGetter() const; | 54 GetChromeURLDataManagerBackendGetter() const; |
55 const content::ResourceContext& GetResourceContext() const; | 55 const content::ResourceContext& GetResourceContext() const; |
| 56 // GetResourceContextNoInit() does not call LazyInitialize() so it can be |
| 57 // safely be used during initialization. |
| 58 const content::ResourceContext& GetResourceContextNoInit() const; |
56 scoped_refptr<ChromeURLRequestContextGetter> | 59 scoped_refptr<ChromeURLRequestContextGetter> |
57 GetMainRequestContextGetter() const; | 60 GetMainRequestContextGetter() const; |
58 scoped_refptr<ChromeURLRequestContextGetter> | 61 scoped_refptr<ChromeURLRequestContextGetter> |
59 GetMediaRequestContextGetter() const; | 62 GetMediaRequestContextGetter() const; |
60 scoped_refptr<ChromeURLRequestContextGetter> | 63 scoped_refptr<ChromeURLRequestContextGetter> |
61 GetExtensionsRequestContextGetter() const; | 64 GetExtensionsRequestContextGetter() const; |
62 scoped_refptr<ChromeURLRequestContextGetter> | 65 scoped_refptr<ChromeURLRequestContextGetter> |
63 GetIsolatedAppRequestContextGetter( | 66 GetIsolatedAppRequestContextGetter( |
64 const std::string& app_id) const; | 67 const std::string& app_id) const; |
65 | 68 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; | 156 mutable scoped_ptr<chrome_browser_net::Predictor> predictor_; |
154 | 157 |
155 // Parameters needed for isolated apps. | 158 // Parameters needed for isolated apps. |
156 FilePath app_path_; | 159 FilePath app_path_; |
157 mutable bool clear_local_state_on_exit_; | 160 mutable bool clear_local_state_on_exit_; |
158 | 161 |
159 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); | 162 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); |
160 }; | 163 }; |
161 | 164 |
162 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ | 165 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ |
OLD | NEW |