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