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

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

Issue 115029: Making command-line specified proxy settings more flexible - allowing for set... (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
« no previous file with comments | « no previous file | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 class Profile; 11 class Profile;
12 class CommandLine;
13 namespace net {
14 class ProxyConfig;
15 }
12 16
13 // A URLRequestContext subclass used by the browser. This can be used to store 17 // A URLRequestContext subclass used by the browser. This can be used to store
14 // extra information about requests, beyond what is supported by the base 18 // extra information about requests, beyond what is supported by the base
15 // URLRequestContext class. 19 // URLRequestContext class.
16 // 20 //
17 // All methods are expected to be called on the IO thread except the 21 // All methods are expected to be called on the IO thread except the
18 // constructor and factories (CreateOriginal, CreateOffTheRecord), which are 22 // constructor and factories (CreateOriginal, CreateOffTheRecord), which are
19 // expected to be called on the UI thread. 23 // expected to be called on the UI thread.
20 class ChromeURLRequestContext : public URLRequestContext, 24 class ChromeURLRequestContext : public URLRequestContext,
21 public NotificationObserver { 25 public NotificationObserver {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ExtensionPaths extension_paths_; 93 ExtensionPaths extension_paths_;
90 94
91 // Path to the directory user scripts are stored in. 95 // Path to the directory user scripts are stored in.
92 FilePath user_script_dir_path_; 96 FilePath user_script_dir_path_;
93 97
94 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; 98 scoped_ptr<SQLitePersistentCookieStore> cookie_db_;
95 PrefService* prefs_; 99 PrefService* prefs_;
96 bool is_media_; 100 bool is_media_;
97 bool is_off_the_record_; 101 bool is_off_the_record_;
98 }; 102 };
103
104 // Creates a proxy configuration using the overrides specified on the command
105 // line. Returns NULL if the system defaults should be used instead.
106 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line);
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698