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

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

Issue 7493025: Instantiate OriginBoundCertService in relevant places and do plumbing to pass it down to HttpNetw... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 12 matching lines...) Expand all
23 explicit Handle(Profile* profile); 23 explicit Handle(Profile* profile);
24 ~Handle(); 24 ~Handle();
25 25
26 bool HasMainRequestContext() const { 26 bool HasMainRequestContext() const {
27 return main_request_context_getter_ != NULL; 27 return main_request_context_getter_ != NULL;
28 } 28 }
29 29
30 // Init() must be called before ~Handle(). It records all the necessary 30 // Init() must be called before ~Handle(). It records all the necessary
31 // parameters needed to construct a ChromeURLRequestContextGetter. 31 // parameters needed to construct a ChromeURLRequestContextGetter.
32 void Init(const FilePath& cookie_path, 32 void Init(const FilePath& cookie_path,
33 const FilePath& origin_bound_cert_path,
33 const FilePath& cache_path, 34 const FilePath& cache_path,
34 int cache_max_size, 35 int cache_max_size,
35 const FilePath& media_cache_path, 36 const FilePath& media_cache_path,
36 int media_cache_max_size, 37 int media_cache_max_size,
37 const FilePath& extensions_cookie_path, 38 const FilePath& extensions_cookie_path,
39 const FilePath& extensions_origin_bound_cert_path,
38 const FilePath& app_path); 40 const FilePath& app_path);
39 41
40 base::Callback<ChromeURLDataManagerBackend*(void)> 42 base::Callback<ChromeURLDataManagerBackend*(void)>
41 GetChromeURLDataManagerBackendGetter() const; 43 GetChromeURLDataManagerBackendGetter() const;
42 const content::ResourceContext& GetResourceContext() const; 44 const content::ResourceContext& GetResourceContext() const;
43 scoped_refptr<ChromeURLRequestContextGetter> 45 scoped_refptr<ChromeURLRequestContextGetter>
44 GetMainRequestContextGetter() const; 46 GetMainRequestContextGetter() const;
45 scoped_refptr<ChromeURLRequestContextGetter> 47 scoped_refptr<ChromeURLRequestContextGetter>
46 GetMediaRequestContextGetter() const; 48 GetMediaRequestContextGetter() const;
47 scoped_refptr<ChromeURLRequestContextGetter> 49 scoped_refptr<ChromeURLRequestContextGetter>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 88
87 private: 89 private:
88 friend class base::RefCountedThreadSafe<ProfileImplIOData>; 90 friend class base::RefCountedThreadSafe<ProfileImplIOData>;
89 91
90 struct LazyParams { 92 struct LazyParams {
91 LazyParams(); 93 LazyParams();
92 ~LazyParams(); 94 ~LazyParams();
93 95
94 // All of these parameters are intended to be read on the IO thread. 96 // All of these parameters are intended to be read on the IO thread.
95 FilePath cookie_path; 97 FilePath cookie_path;
98 FilePath origin_bound_cert_path;
96 FilePath cache_path; 99 FilePath cache_path;
97 int cache_max_size; 100 int cache_max_size;
98 FilePath media_cache_path; 101 FilePath media_cache_path;
99 int media_cache_max_size; 102 int media_cache_max_size;
100 FilePath extensions_cookie_path; 103 FilePath extensions_cookie_path;
104 FilePath extensions_origin_bound_cert_path;
101 }; 105 };
102 106
103 typedef base::hash_map<std::string, net::HttpTransactionFactory* > 107 typedef base::hash_map<std::string, net::HttpTransactionFactory* >
104 HttpTransactionFactoryMap; 108 HttpTransactionFactoryMap;
105 109
106 ProfileImplIOData(); 110 ProfileImplIOData();
107 virtual ~ProfileImplIOData(); 111 virtual ~ProfileImplIOData();
108 112
109 virtual void LazyInitializeInternal(ProfileParams* profile_params) const; 113 virtual void LazyInitializeInternal(ProfileParams* profile_params) const;
110 virtual scoped_refptr<RequestContext> InitializeAppRequestContext( 114 virtual scoped_refptr<RequestContext> InitializeAppRequestContext(
(...skipping 15 matching lines...) Expand all
126 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; 130 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_;
127 131
128 // Parameters needed for isolated apps. 132 // Parameters needed for isolated apps.
129 FilePath app_path_; 133 FilePath app_path_;
130 mutable bool clear_local_state_on_exit_; 134 mutable bool clear_local_state_on_exit_;
131 135
132 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 136 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
133 }; 137 };
134 138
135 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 139 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698