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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 return main_request_context_; | 223 return main_request_context_; |
224 } | 224 } |
225 | 225 |
226 private: | 226 private: |
227 class ResourceContext : public content::ResourceContext { | 227 class ResourceContext : public content::ResourceContext { |
228 public: | 228 public: |
229 explicit ResourceContext(const ProfileIOData* io_data); | 229 explicit ResourceContext(const ProfileIOData* io_data); |
230 virtual ~ResourceContext(); | 230 virtual ~ResourceContext(); |
231 | 231 |
232 private: | 232 private: |
233 virtual void EnsureInitialized() const; | 233 virtual void EnsureInitialized() const OVERRIDE; |
234 | 234 |
235 const ProfileIOData* const io_data_; | 235 const ProfileIOData* const io_data_; |
236 }; | 236 }; |
237 | 237 |
238 typedef base::hash_map<std::string, scoped_refptr<ChromeURLRequestContext> > | 238 typedef base::hash_map<std::string, scoped_refptr<ChromeURLRequestContext> > |
239 AppRequestContextMap; | 239 AppRequestContextMap; |
240 | 240 |
241 // -------------------------------------------- | 241 // -------------------------------------------- |
242 // Virtual interface for subtypes to implement: | 242 // Virtual interface for subtypes to implement: |
243 // -------------------------------------------- | 243 // -------------------------------------------- |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // One AppRequestContext per isolated app. | 316 // One AppRequestContext per isolated app. |
317 mutable AppRequestContextMap app_request_context_map_; | 317 mutable AppRequestContextMap app_request_context_map_; |
318 | 318 |
319 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 319 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
320 bool initialized_on_UI_thread_; | 320 bool initialized_on_UI_thread_; |
321 | 321 |
322 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 322 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
323 }; | 323 }; |
324 | 324 |
325 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 325 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |