OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 explicit ProfileIOData(bool is_off_the_record); | 116 explicit ProfileIOData(bool is_off_the_record); |
117 virtual ~ProfileIOData(); | 117 virtual ~ProfileIOData(); |
118 | 118 |
119 // Static helper functions to assist in common operations executed by | 119 // Static helper functions to assist in common operations executed by |
120 // subtypes. | 120 // subtypes. |
121 | 121 |
122 static void InitializeProfileParams(Profile* profile, ProfileParams* params); | 122 static void InitializeProfileParams(Profile* profile, ProfileParams* params); |
123 static void ApplyProfileParamsToContext(const ProfileParams& profile_params, | 123 static void ApplyProfileParamsToContext(const ProfileParams& profile_params, |
124 ChromeURLRequestContext* context); | 124 ChromeURLRequestContext* context); |
125 static net::ProxyConfigService* CreateProxyConfigService(Profile* profile); | |
126 static net::ProxyService* CreateProxyService( | |
127 net::NetLog* net_log, | |
128 net::URLRequestContext* context, | |
129 net::ProxyConfigService* proxy_config_service, | |
130 const CommandLine& command_line); | |
131 | 125 |
132 // Lazy initializes the ProfileIOData object the first time a request context | 126 // Lazy initializes the ProfileIOData object the first time a request context |
133 // is requested. The lazy logic is implemented here. The actual initialization | 127 // is requested. The lazy logic is implemented here. The actual initialization |
134 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper | 128 // is done in LazyInitializeInternal(), implemented by subtypes. Static helper |
135 // functions have been provided to assist in common operations. | 129 // functions have been provided to assist in common operations. |
136 void LazyInitialize() const; | 130 void LazyInitialize() const; |
137 | 131 |
138 // -------------------------------------------- | 132 // -------------------------------------------- |
139 // Virtual interface for subtypes to implement: | 133 // Virtual interface for subtypes to implement: |
140 // -------------------------------------------- | 134 // -------------------------------------------- |
(...skipping 10 matching lines...) Expand all Loading... |
151 AcquireMediaRequestContext() const = 0; | 145 AcquireMediaRequestContext() const = 0; |
152 virtual scoped_refptr<ChromeURLRequestContext> | 146 virtual scoped_refptr<ChromeURLRequestContext> |
153 AcquireExtensionsRequestContext() const = 0; | 147 AcquireExtensionsRequestContext() const = 0; |
154 | 148 |
155 mutable bool initialized_; | 149 mutable bool initialized_; |
156 | 150 |
157 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 151 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
158 }; | 152 }; |
159 | 153 |
160 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 154 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |