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

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

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving to WeakPtrs and RVHD. Created 8 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
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 13 matching lines...) Expand all
24 class DesktopNotificationService; 24 class DesktopNotificationService;
25 class ExtensionInfoMap; 25 class ExtensionInfoMap;
26 class HostContentSettingsMap; 26 class HostContentSettingsMap;
27 class IOThread; 27 class IOThread;
28 class Profile; 28 class Profile;
29 class ProtocolHandlerRegistry; 29 class ProtocolHandlerRegistry;
30 class TransportSecurityPersister; 30 class TransportSecurityPersister;
31 31
32 namespace chrome_browser_net { 32 namespace chrome_browser_net {
33 class HttpServerPropertiesManager; 33 class HttpServerPropertiesManager;
34 class ResourcePrefetchPredictorObserver;
34 } 35 }
35 36
36 namespace net { 37 namespace net {
37 class CookieStore; 38 class CookieStore;
38 class FraudulentCertificateReporter; 39 class FraudulentCertificateReporter;
39 class HttpTransactionFactory; 40 class HttpTransactionFactory;
40 class ServerBoundCertService; 41 class ServerBoundCertService;
41 class ProxyConfigService; 42 class ProxyConfigService;
42 class ProxyService; 43 class ProxyService;
43 class SSLConfigService; 44 class SSLConfigService;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return transport_security_state_.get(); 112 return transport_security_state_.get();
112 } 113 }
113 114
114 chrome_browser_net::HttpServerPropertiesManager* 115 chrome_browser_net::HttpServerPropertiesManager*
115 http_server_properties_manager() const; 116 http_server_properties_manager() const;
116 117
117 bool is_incognito() const { 118 bool is_incognito() const {
118 return is_incognito_; 119 return is_incognito_;
119 } 120 }
120 121
122 chrome_browser_net::ResourcePrefetchPredictorObserver*
123 resource_prefetch_predictor_observer() const {
124 return resource_prefetch_predictor_observer_.get();
125 }
126
121 // Initialize the member needed to track the metrics enabled state. This is 127 // Initialize the member needed to track the metrics enabled state. This is
122 // only to be called on the UI thread. 128 // only to be called on the UI thread.
123 void InitializeMetricsEnabledStateOnUIThread(); 129 void InitializeMetricsEnabledStateOnUIThread();
124 130
125 // Returns whether or not metrics reporting is enabled in the browser instance 131 // Returns whether or not metrics reporting is enabled in the browser instance
126 // on which this profile resides. This is safe for use from the IO thread, and 132 // on which this profile resides. This is safe for use from the IO thread, and
127 // should only be called from there. 133 // should only be called from there.
128 bool GetMetricsEnabledStateOnIOThread() const; 134 bool GetMetricsEnabledStateOnIOThread() const;
129 135
130 protected: 136 protected:
(...skipping 20 matching lines...) Expand all
151 FilePath path; 157 FilePath path;
152 bool clear_local_state_on_exit; 158 bool clear_local_state_on_exit;
153 std::string accept_language; 159 std::string accept_language;
154 std::string accept_charset; 160 std::string accept_charset;
155 std::string referrer_charset; 161 std::string referrer_charset;
156 IOThread* io_thread; 162 IOThread* io_thread;
157 scoped_refptr<CookieSettings> cookie_settings; 163 scoped_refptr<CookieSettings> cookie_settings;
158 scoped_refptr<net::SSLConfigService> ssl_config_service; 164 scoped_refptr<net::SSLConfigService> ssl_config_service;
159 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; 165 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate;
160 scoped_refptr<ExtensionInfoMap> extension_info_map; 166 scoped_refptr<ExtensionInfoMap> extension_info_map;
167 scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
168 resource_prefetch_predictor_observer_;
161 169
162 #if defined(ENABLE_NOTIFICATIONS) 170 #if defined(ENABLE_NOTIFICATIONS)
163 DesktopNotificationService* notification_service; 171 DesktopNotificationService* notification_service;
164 #endif 172 #endif
165 173
166 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry; 174 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry;
167 // We need to initialize the ProxyConfigService from the UI thread 175 // We need to initialize the ProxyConfigService from the UI thread
168 // because on linux it relies on initializing things through gconf, 176 // because on linux it relies on initializing things through gconf,
169 // and needs to be on the main thread. 177 // and needs to be on the main thread.
170 scoped_ptr<net::ProxyConfigService> proxy_config_service; 178 scoped_ptr<net::ProxyConfigService> proxy_config_service;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 mutable scoped_ptr<ChromeURLRequestContext> main_request_context_; 352 mutable scoped_ptr<ChromeURLRequestContext> main_request_context_;
345 mutable scoped_ptr<ChromeURLRequestContext> extensions_request_context_; 353 mutable scoped_ptr<ChromeURLRequestContext> extensions_request_context_;
346 // One AppRequestContext per isolated app. 354 // One AppRequestContext per isolated app.
347 mutable AppRequestContextMap app_request_context_map_; 355 mutable AppRequestContextMap app_request_context_map_;
348 356
349 mutable scoped_ptr<ResourceContext> resource_context_; 357 mutable scoped_ptr<ResourceContext> resource_context_;
350 358
351 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; 359 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_;
352 mutable scoped_refptr<CookieSettings> cookie_settings_; 360 mutable scoped_refptr<CookieSettings> cookie_settings_;
353 361
362 mutable scoped_ptr<chrome_browser_net::ResourcePrefetchPredictorObserver>
363 resource_prefetch_predictor_observer_;
364
354 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 365 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
355 bool initialized_on_UI_thread_; 366 bool initialized_on_UI_thread_;
356 367
357 bool is_incognito_; 368 bool is_incognito_;
358 369
359 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 370 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
360 }; 371 };
361 372
362 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 373 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698