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

Side by Side Diff: chrome/browser/io_thread.h

Issue 387003008: ifdef extensions code in BrowserProcess, IOThread, and ChromeNetworkDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // ProxyService, since we always directly connect to fetch the PAC script. 148 // ProxyService, since we always directly connect to fetch the PAC script.
149 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context; 149 scoped_ptr<net::URLRequestContext> proxy_script_fetcher_context;
150 scoped_ptr<net::ProxyService> system_proxy_service; 150 scoped_ptr<net::ProxyService> system_proxy_service;
151 scoped_ptr<net::HttpTransactionFactory> system_http_transaction_factory; 151 scoped_ptr<net::HttpTransactionFactory> system_http_transaction_factory;
152 scoped_ptr<net::URLRequestJobFactory> system_url_request_job_factory; 152 scoped_ptr<net::URLRequestJobFactory> system_url_request_job_factory;
153 scoped_ptr<net::URLRequestContext> system_request_context; 153 scoped_ptr<net::URLRequestContext> system_request_context;
154 SystemRequestContextLeakChecker system_request_context_leak_checker; 154 SystemRequestContextLeakChecker system_request_context_leak_checker;
155 // |system_cookie_store| and |system_server_bound_cert_service| are shared 155 // |system_cookie_store| and |system_server_bound_cert_service| are shared
156 // between |proxy_script_fetcher_context| and |system_request_context|. 156 // between |proxy_script_fetcher_context| and |system_request_context|.
157 scoped_refptr<net::CookieStore> system_cookie_store; 157 scoped_refptr<net::CookieStore> system_cookie_store;
158 #if defined(ENABLE_EXTENSIONS)
158 scoped_refptr<extensions::EventRouterForwarder> 159 scoped_refptr<extensions::EventRouterForwarder>
159 extension_event_router_forwarder; 160 extension_event_router_forwarder;
161 #endif
160 scoped_ptr<net::HostMappingRules> host_mapping_rules; 162 scoped_ptr<net::HostMappingRules> host_mapping_rules;
161 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; 163 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings;
162 bool ignore_certificate_errors; 164 bool ignore_certificate_errors;
163 uint16 testing_fixed_http_port; 165 uint16 testing_fixed_http_port;
164 uint16 testing_fixed_https_port; 166 uint16 testing_fixed_https_port;
165 167
166 Optional<size_t> initial_max_spdy_concurrent_streams; 168 Optional<size_t> initial_max_spdy_concurrent_streams;
167 Optional<bool> force_spdy_single_domain; 169 Optional<bool> force_spdy_single_domain;
168 Optional<bool> enable_spdy_compression; 170 Optional<bool> enable_spdy_compression;
169 Optional<bool> enable_spdy_ping_based_connection_checking; 171 Optional<bool> enable_spdy_ping_based_connection_checking;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // Returns the alternate protocol probability threshold specified by 374 // Returns the alternate protocol probability threshold specified by
373 // any flags in |command_line| or |quic_trial_params|. 375 // any flags in |command_line| or |quic_trial_params|.
374 static double GetAlternateProtocolProbabilityThreshold( 376 static double GetAlternateProtocolProbabilityThreshold(
375 const base::CommandLine& command_line, 377 const base::CommandLine& command_line,
376 const VariationParameters& quic_trial_params); 378 const VariationParameters& quic_trial_params);
377 379
378 // The NetLog is owned by the browser process, to allow logging from other 380 // The NetLog is owned by the browser process, to allow logging from other
379 // threads during shutdown, but is used most frequently on the IOThread. 381 // threads during shutdown, but is used most frequently on the IOThread.
380 ChromeNetLog* net_log_; 382 ChromeNetLog* net_log_;
381 383
384 #if defined(ENABLE_EXTENSIONS)
382 // The extensions::EventRouterForwarder allows for sending events to 385 // The extensions::EventRouterForwarder allows for sending events to
383 // extensions from the IOThread. 386 // extensions from the IOThread.
384 extensions::EventRouterForwarder* extension_event_router_forwarder_; 387 extensions::EventRouterForwarder* extension_event_router_forwarder_;
388 #endif
385 389
386 // These member variables are basically global, but their lifetimes are tied 390 // These member variables are basically global, but their lifetimes are tied
387 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. 391 // to the IOThread. IOThread owns them all, despite not using scoped_ptr.
388 // This is because the destructor of IOThread runs on the wrong thread. All 392 // This is because the destructor of IOThread runs on the wrong thread. All
389 // member variables should be deleted in CleanUp(). 393 // member variables should be deleted in CleanUp().
390 394
391 // These member variables are initialized in Init() and do not change for the 395 // These member variables are initialized in Init() and do not change for the
392 // lifetime of the IO thread. 396 // lifetime of the IO thread.
393 397
394 Globals* globals_; 398 Globals* globals_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 bool is_spdy_disabled_by_policy_; 432 bool is_spdy_disabled_by_policy_;
429 433
430 base::WeakPtrFactory<IOThread> weak_factory_; 434 base::WeakPtrFactory<IOThread> weak_factory_;
431 435
432 const base::TimeTicks creation_time_; 436 const base::TimeTicks creation_time_;
433 437
434 DISALLOW_COPY_AND_ASSIGN(IOThread); 438 DISALLOW_COPY_AND_ASSIGN(IOThread);
435 }; 439 };
436 440
437 #endif // CHROME_BROWSER_IO_THREAD_H_ 441 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698