Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Side by Side Diff: chrome/browser/net/chrome_url_request_context.h

Issue 115204: Add a separate cookie store that's used for extensions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_observer.h" 7 #include "chrome/common/notification_observer.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 20 matching lines...) Expand all
31 static ChromeURLRequestContext* CreateOriginal( 31 static ChromeURLRequestContext* CreateOriginal(
32 Profile* profile, const FilePath& cookie_store_path, 32 Profile* profile, const FilePath& cookie_store_path,
33 const FilePath& disk_cache_path); 33 const FilePath& disk_cache_path);
34 34
35 // Create an instance for an original profile for media. This is expected to 35 // Create an instance for an original profile for media. This is expected to
36 // get called on UI thread. This method takes a profile and reuses the 36 // get called on UI thread. This method takes a profile and reuses the
37 // 'original' URLRequestContext for common files. 37 // 'original' URLRequestContext for common files.
38 static ChromeURLRequestContext* CreateOriginalForMedia(Profile *profile, 38 static ChromeURLRequestContext* CreateOriginalForMedia(Profile *profile,
39 const FilePath& disk_cache_path); 39 const FilePath& disk_cache_path);
40 40
41 // Create an instance for an original profile for extensions. This is expected
42 // to get called on UI thread.
43 static ChromeURLRequestContext* CreateOriginalForExtensions(Profile *profile,
44 const FilePath& cookie_store_path);
45
41 // 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
42 // called on the UI thread. 47 // called on the UI thread.
43 static ChromeURLRequestContext* CreateOffTheRecord(Profile* profile); 48 static ChromeURLRequestContext* CreateOffTheRecord(Profile* profile);
44 49
45 // Create an instance of request context for OTR profile for media resources. 50 // Create an instance of request context for OTR profile for media resources.
46 static ChromeURLRequestContext* CreateOffTheRecordForMedia(Profile* profile, 51 static ChromeURLRequestContext* CreateOffTheRecordForMedia(Profile* profile,
47 const FilePath& disk_cache_path); 52 const FilePath& disk_cache_path);
48 53
54 // Create an instance of request context for OTR profile for extensions.
55 static ChromeURLRequestContext* CreateOffTheRecordForExtensions(
56 Profile* profile);
57
49 // Clean up UI thread resources. This is expected to get called on the UI 58 // Clean up UI thread resources. This is expected to get called on the UI
50 // thread before the instance is deleted on the IO thread. 59 // thread before the instance is deleted on the IO thread.
51 void CleanupOnUIThread(); 60 void CleanupOnUIThread();
52 61
53 // Gets the path to the directory for the specified extension. 62 // Gets the path to the directory for the specified extension.
54 FilePath GetPathForExtension(const std::string& id); 63 FilePath GetPathForExtension(const std::string& id);
55 64
56 // Gets the path to the directory user scripts are stored in. 65 // Gets the path to the directory user scripts are stored in.
57 FilePath user_script_dir_path() const { 66 FilePath user_script_dir_path() const {
58 return user_script_dir_path_; 67 return user_script_dir_path_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 106
98 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; 107 scoped_ptr<SQLitePersistentCookieStore> cookie_db_;
99 PrefService* prefs_; 108 PrefService* prefs_;
100 bool is_media_; 109 bool is_media_;
101 bool is_off_the_record_; 110 bool is_off_the_record_;
102 }; 111 };
103 112
104 // Creates a proxy configuration using the overrides specified on the command 113 // Creates a proxy configuration using the overrides specified on the command
105 // line. Returns NULL if the system defaults should be used instead. 114 // line. Returns NULL if the system defaults should be used instead.
106 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line); 115 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698