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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 2088763004: Remove resource_context.h include from resource_loader.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 6 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 | « no previous file | chrome/browser/profiles/profile_io_data.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 namespace extensions { 68 namespace extensions {
69 class ExtensionThrottleManager; 69 class ExtensionThrottleManager;
70 class InfoMap; 70 class InfoMap;
71 } 71 }
72 72
73 namespace net { 73 namespace net {
74 class CertVerifier; 74 class CertVerifier;
75 class ChannelIDService; 75 class ChannelIDService;
76 class ClientCertStore;
76 class CookieStore; 77 class CookieStore;
77 class CTVerifier; 78 class CTVerifier;
78 class FtpTransactionFactory; 79 class FtpTransactionFactory;
79 class HttpServerProperties; 80 class HttpServerProperties;
80 class HttpTransactionFactory; 81 class HttpTransactionFactory;
81 class ProxyConfigService; 82 class ProxyConfigService;
82 class ProxyService; 83 class ProxyService;
83 class ReportSender; 84 class ReportSender;
84 class SSLConfigService; 85 class SSLConfigService;
85 class TransportSecurityPersister; 86 class TransportSecurityPersister;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 197 }
197 198
198 net::TransportSecurityState* transport_security_state() const { 199 net::TransportSecurityState* transport_security_state() const {
199 return transport_security_state_.get(); 200 return transport_security_state_.get();
200 } 201 }
201 202
202 #if defined(OS_CHROMEOS) 203 #if defined(OS_CHROMEOS)
203 std::string username_hash() const { 204 std::string username_hash() const {
204 return username_hash_; 205 return username_hash_;
205 } 206 }
206
207 bool use_system_key_slot() const { return use_system_key_slot_; }
208 #endif 207 #endif
209 208
210 Profile::ProfileType profile_type() const { 209 Profile::ProfileType profile_type() const {
211 return profile_type_; 210 return profile_type_;
212 } 211 }
213 212
214 bool IsOffTheRecord() const; 213 bool IsOffTheRecord() const;
215 214
216 IntegerPrefMember* incognito_availibility() const { 215 IntegerPrefMember* incognito_availibility() const {
217 return &incognito_availibility_pref_; 216 return &incognito_availibility_pref_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 254
256 // This function is to be used to check if the |url| is defined in 255 // This function is to be used to check if the |url| is defined in
257 // blacklist or whitelist policy. 256 // blacklist or whitelist policy.
258 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState( 257 virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState(
259 const GURL& url) const; 258 const GURL& url) const;
260 259
261 // Returns the predictor service for this Profile. Returns nullptr if there is 260 // Returns the predictor service for this Profile. Returns nullptr if there is
262 // no Predictor, as is the case with OffTheRecord profiles. 261 // no Predictor, as is the case with OffTheRecord profiles.
263 virtual chrome_browser_net::Predictor* GetPredictor(); 262 virtual chrome_browser_net::Predictor* GetPredictor();
264 263
264 // Get platform ClientCertStore. May return nullptr.
265 std::unique_ptr<net::ClientCertStore> CreateClientCertStore();
266
265 protected: 267 protected:
266 // A URLRequestContext for media that owns its HTTP factory, to ensure 268 // A URLRequestContext for media that owns its HTTP factory, to ensure
267 // it is deleted. 269 // it is deleted.
268 class MediaRequestContext : public net::URLRequestContext { 270 class MediaRequestContext : public net::URLRequestContext {
269 public: 271 public:
270 MediaRequestContext(); 272 MediaRequestContext();
271 273
272 void SetHttpTransactionFactory( 274 void SetHttpTransactionFactory(
273 std::unique_ptr<net::HttpTransactionFactory> http_factory); 275 std::unique_ptr<net::HttpTransactionFactory> http_factory);
274 276
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 428
427 private: 429 private:
428 class ResourceContext : public content::ResourceContext { 430 class ResourceContext : public content::ResourceContext {
429 public: 431 public:
430 explicit ResourceContext(ProfileIOData* io_data); 432 explicit ResourceContext(ProfileIOData* io_data);
431 ~ResourceContext() override; 433 ~ResourceContext() override;
432 434
433 // ResourceContext implementation: 435 // ResourceContext implementation:
434 net::HostResolver* GetHostResolver() override; 436 net::HostResolver* GetHostResolver() override;
435 net::URLRequestContext* GetRequestContext() override; 437 net::URLRequestContext* GetRequestContext() override;
436 std::unique_ptr<net::ClientCertStore> CreateClientCertStore() override;
437 void CreateKeygenHandler( 438 void CreateKeygenHandler(
438 uint32_t key_size_in_bits, 439 uint32_t key_size_in_bits,
439 const std::string& challenge_string, 440 const std::string& challenge_string,
440 const GURL& url, 441 const GURL& url,
441 const base::Callback<void(std::unique_ptr<net::KeygenHandler>)>& 442 const base::Callback<void(std::unique_ptr<net::KeygenHandler>)>&
442 callback) override; 443 callback) override;
443 std::string GetMediaDeviceIDSalt() override; 444 std::string GetMediaDeviceIDSalt() override;
444 445
445 private: 446 private:
446 friend class ProfileIOData; 447 friend class ProfileIOData;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 mutable std::unique_ptr<certificate_transparency::TreeStateTracker> 621 mutable std::unique_ptr<certificate_transparency::TreeStateTracker>
621 ct_tree_tracker_; 622 ct_tree_tracker_;
622 mutable base::Closure ct_tree_tracker_unregistration_; 623 mutable base::Closure ct_tree_tracker_unregistration_;
623 624
624 const Profile::ProfileType profile_type_; 625 const Profile::ProfileType profile_type_;
625 626
626 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 627 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
627 }; 628 };
628 629
629 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 630 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698