OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/net/chrome_url_request_context.h" | 5 #include "chrome/browser/net/chrome_url_request_context.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/privacy_blacklist/blacklist.h" | 10 #include "chrome/browser/privacy_blacklist/blacklist.h" |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 } | 587 } |
588 } | 588 } |
589 | 589 |
590 if (profile->GetUserScriptMaster()) | 590 if (profile->GetUserScriptMaster()) |
591 user_script_dir_path_ = profile->GetUserScriptMaster()->user_script_dir(); | 591 user_script_dir_path_ = profile->GetUserScriptMaster()->user_script_dir(); |
592 | 592 |
593 // TODO(eroman): this doesn't look safe; sharing between IO and UI threads! | 593 // TODO(eroman): this doesn't look safe; sharing between IO and UI threads! |
594 ssl_config_service_ = profile->GetSSLConfigService(); | 594 ssl_config_service_ = profile->GetSSLConfigService(); |
595 | 595 |
596 profile_dir_path_ = profile->GetPath(); | 596 profile_dir_path_ = profile->GetPath(); |
597 | |
598 // Get references to the database and file threads. | |
599 db_loop_ = g_browser_process->db_thread()->message_loop(); | |
600 } | 597 } |
601 | 598 |
602 ChromeURLRequestContextFactory::~ChromeURLRequestContextFactory() { | 599 ChromeURLRequestContextFactory::~ChromeURLRequestContextFactory() { |
603 CheckCurrentlyOnIOThread(); | 600 CheckCurrentlyOnIOThread(); |
604 } | 601 } |
605 | 602 |
606 void ChromeURLRequestContextFactory::ApplyProfileParametersToContext( | 603 void ChromeURLRequestContextFactory::ApplyProfileParametersToContext( |
607 ChromeURLRequestContext* context) { | 604 ChromeURLRequestContext* context) { |
608 // Apply all the parameters. NOTE: keep this in sync with | 605 // Apply all the parameters. NOTE: keep this in sync with |
609 // ChromeURLRequestContextFactory(Profile*). | 606 // ChromeURLRequestContextFactory(Profile*). |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 return result; | 884 return result; |
888 } | 885 } |
889 | 886 |
890 void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper( | 887 void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper( |
891 base::WaitableEvent* completion, | 888 base::WaitableEvent* completion, |
892 net::CookieStore** result) { | 889 net::CookieStore** result) { |
893 // Note that CookieStore is refcounted, yet we do not add a reference. | 890 // Note that CookieStore is refcounted, yet we do not add a reference. |
894 *result = GetURLRequestContext()->cookie_store(); | 891 *result = GetURLRequestContext()->cookie_store(); |
895 completion->Signal(); | 892 completion->Signal(); |
896 } | 893 } |
OLD | NEW |