OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "chrome/common/net/cookie_monster_sqlite.h" | 6 #include "chrome/common/net/cookie_monster_sqlite.h" |
7 #include "chrome/common/notification_registrar.h" | 7 #include "chrome/common/notification_registrar.h" |
8 #include "chrome/common/pref_service.h" | 8 #include "chrome/common/pref_service.h" |
9 #include "net/url_request/url_request_context.h" | 9 #include "net/url_request/url_request_context.h" |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Create an instance for an original profile for extensions. This is expected | 41 // Create an instance for an original profile for extensions. This is expected |
42 // to get called on UI thread. | 42 // to get called on UI thread. |
43 static ChromeURLRequestContext* CreateOriginalForExtensions(Profile *profile, | 43 static ChromeURLRequestContext* CreateOriginalForExtensions(Profile *profile, |
44 const FilePath& cookie_store_path); | 44 const FilePath& cookie_store_path); |
45 | 45 |
46 // Create an instance for use with an OTR profile. This is expected to get | 46 // Create an instance for use with an OTR profile. This is expected to get |
47 // called on the UI thread. | 47 // called on the UI thread. |
48 static ChromeURLRequestContext* CreateOffTheRecord(Profile* profile); | 48 static ChromeURLRequestContext* CreateOffTheRecord(Profile* profile); |
49 | 49 |
50 // Create an instance of request context for OTR profile for media resources. | |
51 static ChromeURLRequestContext* CreateOffTheRecordForMedia(Profile* profile, | |
52 const FilePath& disk_cache_path); | |
53 | |
54 // Create an instance of request context for OTR profile for extensions. | 50 // Create an instance of request context for OTR profile for extensions. |
55 static ChromeURLRequestContext* CreateOffTheRecordForExtensions( | 51 static ChromeURLRequestContext* CreateOffTheRecordForExtensions( |
56 Profile* profile); | 52 Profile* profile); |
57 | 53 |
58 // Clean up UI thread resources. This is expected to get called on the UI | 54 // Clean up UI thread resources. This is expected to get called on the UI |
59 // thread before the instance is deleted on the IO thread. | 55 // thread before the instance is deleted on the IO thread. |
60 void CleanupOnUIThread(); | 56 void CleanupOnUIThread(); |
61 | 57 |
62 // Gets the path to the directory for the specified extension. | 58 // Gets the path to the directory for the specified extension. |
63 FilePath GetPathForExtension(const std::string& id); | 59 FilePath GetPathForExtension(const std::string& id); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 107 |
112 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; | 108 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; |
113 PrefService* prefs_; | 109 PrefService* prefs_; |
114 bool is_media_; | 110 bool is_media_; |
115 bool is_off_the_record_; | 111 bool is_off_the_record_; |
116 }; | 112 }; |
117 | 113 |
118 // Creates a proxy configuration using the overrides specified on the command | 114 // Creates a proxy configuration using the overrides specified on the command |
119 // line. Returns NULL if the system defaults should be used instead. | 115 // line. Returns NULL if the system defaults should be used instead. |
120 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line); | 116 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line); |
OLD | NEW |