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

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

Issue 9845033: Move the MediaObserver getter from ResourceContext to ContentBrowserClient, since we only need to s… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix dcheck Created 8 years, 9 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "chrome/browser/net/ssl_config_service_manager.h" 16 #include "chrome/browser/net/ssl_config_service_manager.h"
17 #include "chrome/browser/prefs/pref_member.h" 17 #include "chrome/browser/prefs/pref_member.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/browser_thread_delegate.h" 19 #include "content/public/browser/browser_thread_delegate.h"
20 #include "net/base/network_change_notifier.h" 20 #include "net/base/network_change_notifier.h"
21 21
22 class ChromeNetLog; 22 class ChromeNetLog;
23 class ExtensionEventRouterForwarder; 23 class ExtensionEventRouterForwarder;
24 class MediaInternals;
25 class PrefProxyConfigTrackerImpl; 24 class PrefProxyConfigTrackerImpl;
26 class PrefService; 25 class PrefService;
27 class SystemURLRequestContextGetter; 26 class SystemURLRequestContextGetter;
28 27
29 namespace net { 28 namespace net {
30 class CertVerifier; 29 class CertVerifier;
31 class CookieStore; 30 class CookieStore;
32 class FtpTransactionFactory; 31 class FtpTransactionFactory;
33 class HostResolver; 32 class HostResolver;
34 class HttpAuthHandlerFactory; 33 class HttpAuthHandlerFactory;
(...skipping 16 matching lines...) Expand all
51 // 50 //
52 // If you are looking to interact with the IO thread (e.g. post tasks 51 // If you are looking to interact with the IO thread (e.g. post tasks
53 // to it or check if it is the current thread), see 52 // to it or check if it is the current thread), see
54 // content::BrowserThread. 53 // content::BrowserThread.
55 class IOThread : public content::BrowserThreadDelegate { 54 class IOThread : public content::BrowserThreadDelegate {
56 public: 55 public:
57 struct Globals { 56 struct Globals {
58 Globals(); 57 Globals();
59 ~Globals(); 58 ~Globals();
60 59
61 struct MediaGlobals {
62 MediaGlobals();
63 ~MediaGlobals();
64 // MediaInternals singleton used to aggregate media information.
65 scoped_ptr<MediaInternals> media_internals;
66 } media;
67
68 // The "system" NetworkDelegate, used for Profile-agnostic network events. 60 // The "system" NetworkDelegate, used for Profile-agnostic network events.
69 scoped_ptr<net::NetworkDelegate> system_network_delegate; 61 scoped_ptr<net::NetworkDelegate> system_network_delegate;
70 scoped_ptr<net::HostResolver> host_resolver; 62 scoped_ptr<net::HostResolver> host_resolver;
71 scoped_ptr<net::CertVerifier> cert_verifier; 63 scoped_ptr<net::CertVerifier> cert_verifier;
72 // This TransportSecurityState doesn't load or save any state. It's only 64 // This TransportSecurityState doesn't load or save any state. It's only
73 // used to enforce pinning for system requests and will only use built-in 65 // used to enforce pinning for system requests and will only use built-in
74 // pins. 66 // pins.
75 scoped_ptr<net::TransportSecurityState> transport_security_state; 67 scoped_ptr<net::TransportSecurityState> transport_security_state;
76 scoped_refptr<net::SSLConfigService> ssl_config_service; 68 scoped_refptr<net::SSLConfigService> ssl_config_service;
77 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; 69 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 system_url_request_context_getter_; 193 system_url_request_context_getter_;
202 194
203 net::SdchManager* sdch_manager_; 195 net::SdchManager* sdch_manager_;
204 196
205 base::WeakPtrFactory<IOThread> weak_factory_; 197 base::WeakPtrFactory<IOThread> weak_factory_;
206 198
207 DISALLOW_COPY_AND_ASSIGN(IOThread); 199 DISALLOW_COPY_AND_ASSIGN(IOThread);
208 }; 200 };
209 201
210 #endif // CHROME_BROWSER_IO_THREAD_H_ 202 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698