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

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

Issue 501082: Implement delaying resource requests until privacy blacklists are ready. (Closed)
Patch Set: don't get stuck on errors Created 10 years, 11 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | 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) 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/host_zoom_map.h" 9 #include "chrome/browser/host_zoom_map.h"
10 #include "chrome/browser/net/url_request_context_getter.h" 10 #include "chrome/browser/net/url_request_context_getter.h"
11 #include "chrome/common/appcache/chrome_appcache_service.h" 11 #include "chrome/common/appcache/chrome_appcache_service.h"
12 #include "chrome/common/notification_registrar.h" 12 #include "chrome/common/notification_registrar.h"
13 #include "chrome/common/pref_service.h" 13 #include "chrome/common/pref_service.h"
14 #include "net/url_request/url_request_context.h" 14 #include "net/url_request/url_request_context.h"
15 15
16 class Blacklist;
17 class BlacklistManager; 16 class BlacklistManager;
18 class CommandLine; 17 class CommandLine;
19 class Profile; 18 class Profile;
20 19
21 namespace net { 20 namespace net {
22 class ProxyConfig; 21 class ProxyConfig;
23 } 22 }
24 23
25 class ChromeURLRequestContext; 24 class ChromeURLRequestContext;
26 class ChromeURLRequestContextFactory; 25 class ChromeURLRequestContextFactory;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 184 }
186 185
187 virtual const std::string& GetUserAgent(const GURL& url) const; 186 virtual const std::string& GetUserAgent(const GURL& url) const;
188 187
189 virtual bool InterceptCookie(const URLRequest* request, std::string* cookie); 188 virtual bool InterceptCookie(const URLRequest* request, std::string* cookie);
190 189
191 virtual bool AllowSendingCookies(const URLRequest* request) const; 190 virtual bool AllowSendingCookies(const URLRequest* request) const;
192 191
193 const HostZoomMap* host_zoom_map() const { return host_zoom_map_; } 192 const HostZoomMap* host_zoom_map() const { return host_zoom_map_; }
194 193
195 // Gets the Privacy Blacklist, if any for this context. 194 // Gets the Privacy Blacklist Manager, if any for this context.
196 const Blacklist* GetBlacklist() const; 195 BlacklistManager* GetBlacklistManager() const;
197 196
198 // Callback for when new extensions are loaded. 197 // Callback for when new extensions are loaded.
199 void OnNewExtensions(const std::string& id, 198 void OnNewExtensions(const std::string& id,
200 const FilePath& path, 199 const FilePath& path,
201 const std::string& default_locale); 200 const std::string& default_locale);
202 201
203 // Callback for when an extension is unloaded. 202 // Callback for when an extension is unloaded.
204 void OnUnloadedExtension(const std::string& id); 203 void OnUnloadedExtension(const std::string& id);
205 204
206 protected: 205 protected:
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 FilePath profile_dir_path_; 348 FilePath profile_dir_path_;
350 349
351 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory); 350 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextFactory);
352 }; 351 };
353 352
354 // Creates a proxy configuration using the overrides specified on the command 353 // Creates a proxy configuration using the overrides specified on the command
355 // line. Returns NULL if the system defaults should be used instead. 354 // line. Returns NULL if the system defaults should be used instead.
356 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line); 355 net::ProxyConfig* CreateProxyConfig(const CommandLine& command_line);
357 356
358 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_ 357 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698