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

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

Issue 345034: Add a command line flag to force all network traffic through a particular ser... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/dns_global.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) 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 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "chrome/browser/net/url_request_context_getter.h" 9 #include "chrome/browser/net/url_request_context_getter.h"
10 #include "chrome/common/appcache/chrome_appcache_service.h" 10 #include "chrome/common/appcache/chrome_appcache_service.h"
(...skipping 15 matching lines...) Expand all
26 // TODO(eroman): Cleanup the declaration order in this file -- it is all 26 // TODO(eroman): Cleanup the declaration order in this file -- it is all
27 // wonky to try and minimize awkward deltas. 27 // wonky to try and minimize awkward deltas.
28 28
29 // A URLRequestContextGetter subclass used by the browser. This returns a 29 // A URLRequestContextGetter subclass used by the browser. This returns a
30 // subclass of URLRequestContext which can be used to store extra information 30 // subclass of URLRequestContext which can be used to store extra information
31 // about requests. 31 // about requests.
32 // 32 //
33 // Most methods are expected to be called on the UI thread, except for 33 // Most methods are expected to be called on the UI thread, except for
34 // the destructor and GetURLRequestContext(). 34 // the destructor and GetURLRequestContext().
35 class ChromeURLRequestContextGetter : public URLRequestContextGetter, 35 class ChromeURLRequestContextGetter : public URLRequestContextGetter,
36 public NotificationObserver { 36 public NotificationObserver {
37 public: 37 public:
38 // Constructs a ChromeURLRequestContextGetter that will use |factory| to 38 // Constructs a ChromeURLRequestContextGetter that will use |factory| to
39 // create the ChromeURLRequestContext. If |profile| is non-NULL, then the 39 // create the ChromeURLRequestContext. If |profile| is non-NULL, then the
40 // ChromeURLRequestContextGetter will additionally watch the preferences for 40 // ChromeURLRequestContextGetter will additionally watch the preferences for
41 // changes to charset/language and CleanupOnUIThread() will need to be 41 // changes to charset/language and CleanupOnUIThread() will need to be
42 // called to unregister. 42 // called to unregister.
43 ChromeURLRequestContextGetter(Profile* profile, 43 ChromeURLRequestContextGetter(Profile* profile,
44 ChromeURLRequestContextFactory* factory); 44 ChromeURLRequestContextFactory* factory);
45 45
46 // Must be called on the IO thread. 46 // Must be called on the IO thread.
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 MessageLoop* db_loop_; 320 MessageLoop* db_loop_;
321 321
322 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); 322 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory);
323 }; 323 };
324 324
325 // Creates a proxy configuration using the overrides specified on the command 325 // Creates a proxy configuration using the overrides specified on the command
326 // line. Returns NULL if the system defaults should be used instead. 326 // line. Returns NULL if the system defaults should be used instead.
327 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line); 327 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line);
328 328
329 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 329 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/dns_global.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698