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

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,
38 const FilePath& app_path); 39 const FilePath& app_path);
39 40
40 base::Callback<ChromeURLDataManagerBackend*(void)> 41 base::Callback<ChromeURLDataManagerBackend*(void)>
41 GetChromeURLDataManagerBackendGetter() const; 42 GetChromeURLDataManagerBackendGetter() const;
42 const content::ResourceContext& GetResourceContext() const; 43 const content::ResourceContext& GetResourceContext() const;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 private: 88 private:
88 friend class base::RefCountedThreadSafe<ProfileImplIOData>; 89 friend class base::RefCountedThreadSafe<ProfileImplIOData>;
89 90
90 struct LazyParams { 91 struct LazyParams {
91 LazyParams(); 92 LazyParams();
92 ~LazyParams(); 93 ~LazyParams();
93 94
94 // All of these parameters are intended to be read on the IO thread. 95 // All of these parameters are intended to be read on the IO thread.
95 FilePath cookie_path; 96 FilePath cookie_path;
97 FilePath origin_bound_cert_path;
96 FilePath cache_path; 98 FilePath cache_path;
97 int cache_max_size; 99 int cache_max_size;
98 FilePath media_cache_path; 100 FilePath media_cache_path;
99 int media_cache_max_size; 101 int media_cache_max_size;
100 FilePath extensions_cookie_path; 102 FilePath extensions_cookie_path;
101 }; 103 };
102 104
103 typedef base::hash_map<std::string, net::HttpTransactionFactory* > 105 typedef base::hash_map<std::string, net::HttpTransactionFactory* >
104 HttpTransactionFactoryMap; 106 HttpTransactionFactoryMap;
105 107
(...skipping 20 matching lines...) Expand all
126 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_; 128 mutable scoped_ptr<net::HttpTransactionFactory> media_http_factory_;
127 129
128 // Parameters needed for isolated apps. 130 // Parameters needed for isolated apps.
129 FilePath app_path_; 131 FilePath app_path_;
130 mutable bool clear_local_state_on_exit_; 132 mutable bool clear_local_state_on_exit_;
131 133
132 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 134 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
133 }; 135 };
134 136
135 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 137 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698