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 #include "chrome/browser/profiles/profile_impl_io_data.h" | 5 #include "chrome/browser/profiles/profile_impl_io_data.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/stl_util-inl.h" | 11 #include "base/stl_util.h" |
12 #include "chrome/browser/io_thread.h" | 12 #include "chrome/browser/io_thread.h" |
13 #include "chrome/browser/net/chrome_net_log.h" | 13 #include "chrome/browser/net/chrome_net_log.h" |
14 #include "chrome/browser/net/chrome_network_delegate.h" | 14 #include "chrome/browser/net/chrome_network_delegate.h" |
15 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" | 15 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" |
16 #include "chrome/browser/prefs/pref_member.h" | 16 #include "chrome/browser/prefs/pref_member.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 scoped_refptr<ProfileIOData::RequestContext> | 385 scoped_refptr<ProfileIOData::RequestContext> |
386 ProfileImplIOData::AcquireIsolatedAppRequestContext( | 386 ProfileImplIOData::AcquireIsolatedAppRequestContext( |
387 scoped_refptr<ChromeURLRequestContext> main_context, | 387 scoped_refptr<ChromeURLRequestContext> main_context, |
388 const std::string& app_id) const { | 388 const std::string& app_id) const { |
389 // We create per-app contexts on demand, unlike the others above. | 389 // We create per-app contexts on demand, unlike the others above. |
390 scoped_refptr<RequestContext> app_request_context = | 390 scoped_refptr<RequestContext> app_request_context = |
391 InitializeAppRequestContext(main_context, app_id); | 391 InitializeAppRequestContext(main_context, app_id); |
392 DCHECK(app_request_context); | 392 DCHECK(app_request_context); |
393 return app_request_context; | 393 return app_request_context; |
394 } | 394 } |
OLD | NEW |