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

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

Issue 10264023: Revert 134625 - Transmit a X-Chrome-UMA-Enabled bit to Google domains from clients that have UMA en… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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) 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 ChromeURLRequestContext* extensions_request_context() const { 102 ChromeURLRequestContext* extensions_request_context() const {
103 return extensions_request_context_.get(); 103 return extensions_request_context_.get();
104 } 104 }
105 105
106 BooleanPrefMember* safe_browsing_enabled() const { 106 BooleanPrefMember* safe_browsing_enabled() const {
107 return &safe_browsing_enabled_; 107 return &safe_browsing_enabled_;
108 } 108 }
109 109
110 BooleanPrefMember* enable_metrics() const {
111 return &enable_metrics_;
112 }
113
114 net::TransportSecurityState* transport_security_state() const { 110 net::TransportSecurityState* transport_security_state() const {
115 return transport_security_state_.get(); 111 return transport_security_state_.get();
116 } 112 }
117 113
118 chrome_browser_net::HttpServerPropertiesManager* 114 chrome_browser_net::HttpServerPropertiesManager*
119 http_server_properties_manager() const; 115 http_server_properties_manager() const;
120 116
121 bool is_incognito() const {
122 return is_incognito_;
123 }
124
125 protected: 117 protected:
126 class AppRequestContext : public ChromeURLRequestContext { 118 class AppRequestContext : public ChromeURLRequestContext {
127 public: 119 public:
128 AppRequestContext(); 120 AppRequestContext();
129 121
130 void SetCookieStore(net::CookieStore* cookie_store); 122 void SetCookieStore(net::CookieStore* cookie_store);
131 void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory); 123 void SetHttpTransactionFactory(net::HttpTransactionFactory* http_factory);
132 124
133 private: 125 private:
134 virtual ~AppRequestContext(); 126 virtual ~AppRequestContext();
135 127
136 scoped_refptr<net::CookieStore> cookie_store_; 128 scoped_refptr<net::CookieStore> cookie_store_;
137 scoped_ptr<net::HttpTransactionFactory> http_factory_; 129 scoped_ptr<net::HttpTransactionFactory> http_factory_;
138 }; 130 };
139 131
140 // Created on the UI thread, read on the IO thread during ProfileIOData lazy 132 // Created on the UI thread, read on the IO thread during ProfileIOData lazy
141 // initialization. 133 // initialization.
142 struct ProfileParams { 134 struct ProfileParams {
143 ProfileParams(); 135 ProfileParams();
144 ~ProfileParams(); 136 ~ProfileParams();
145 137
146 FilePath path; 138 FilePath path;
139 bool is_incognito;
147 bool clear_local_state_on_exit; 140 bool clear_local_state_on_exit;
148 std::string accept_language; 141 std::string accept_language;
149 std::string accept_charset; 142 std::string accept_charset;
150 std::string referrer_charset; 143 std::string referrer_charset;
151 IOThread* io_thread; 144 IOThread* io_thread;
152 scoped_refptr<CookieSettings> cookie_settings; 145 scoped_refptr<CookieSettings> cookie_settings;
153 scoped_refptr<net::SSLConfigService> ssl_config_service; 146 scoped_refptr<net::SSLConfigService> ssl_config_service;
154 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; 147 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate;
155 scoped_refptr<ExtensionInfoMap> extension_info_map; 148 scoped_refptr<ExtensionInfoMap> extension_info_map;
156 149
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 283
291 // Tracks whether or not we've been lazily initialized. 284 // Tracks whether or not we've been lazily initialized.
292 mutable bool initialized_; 285 mutable bool initialized_;
293 286
294 // Data from the UI thread from the Profile, used to initialize ProfileIOData. 287 // Data from the UI thread from the Profile, used to initialize ProfileIOData.
295 // Deleted after lazy initialization. 288 // Deleted after lazy initialization.
296 mutable scoped_ptr<ProfileParams> profile_params_; 289 mutable scoped_ptr<ProfileParams> profile_params_;
297 290
298 // Member variables which are pointed to by the various context objects. 291 // Member variables which are pointed to by the various context objects.
299 mutable BooleanPrefMember enable_referrers_; 292 mutable BooleanPrefMember enable_referrers_;
300 mutable BooleanPrefMember enable_metrics_;
301 mutable BooleanPrefMember clear_local_state_on_exit_; 293 mutable BooleanPrefMember clear_local_state_on_exit_;
302 mutable BooleanPrefMember safe_browsing_enabled_; 294 mutable BooleanPrefMember safe_browsing_enabled_;
303 // TODO(marja): Remove session_startup_pref_ if no longer needed. 295 // TODO(marja): Remove session_startup_pref_ if no longer needed.
304 mutable IntegerPrefMember session_startup_pref_; 296 mutable IntegerPrefMember session_startup_pref_;
305 297
306 // Pointed to by NetworkDelegate. 298 // Pointed to by NetworkDelegate.
307 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_; 299 mutable scoped_ptr<policy::URLBlacklistManager> url_blacklist_manager_;
308 300
309 // Pointed to by URLRequestContext. 301 // Pointed to by URLRequestContext.
310 mutable scoped_ptr<ChromeURLDataManagerBackend> 302 mutable scoped_ptr<ChromeURLDataManagerBackend>
(...skipping 23 matching lines...) Expand all
334 mutable AppRequestContextMap app_request_context_map_; 326 mutable AppRequestContextMap app_request_context_map_;
335 327
336 mutable scoped_ptr<ResourceContext> resource_context_; 328 mutable scoped_ptr<ResourceContext> resource_context_;
337 329
338 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; 330 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_;
339 mutable scoped_refptr<CookieSettings> cookie_settings_; 331 mutable scoped_refptr<CookieSettings> cookie_settings_;
340 332
341 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 333 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
342 bool initialized_on_UI_thread_; 334 bool initialized_on_UI_thread_;
343 335
344 bool is_incognito_;
345
346 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 336 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
347 }; 337 };
348 338
349 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 339 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698