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

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

Issue 8894008: Make CF net tests a content::BrowserMainParts. (Closed) Base URL: ssh://joi@192.168.1.201/home/joi/c/chrome/src@cfnettests
Patch Set: Mostly functional, but needs polish. Created 9 years 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) 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 // When each service is created, we set a flag indicating this. At this point, 5 // When each service is created, we set a flag indicating this. At this point,
6 // the service initialization could fail or succeed. This allows us to remember 6 // the service initialization could fail or succeed. This allows us to remember
7 // if we tried to create a service, and not try creating it over and over if 7 // if we tried to create a service, and not try creating it over and over if
8 // the creation failed. 8 // the creation failed.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/prefs/pref_member.h" 23 #include "chrome/browser/prefs/pref_member.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/notification_observer.h" 25 #include "content/public/browser/notification_observer.h"
26 #include "content/public/browser/notification_registrar.h" 26 #include "content/public/browser/notification_registrar.h"
27 #include "ipc/ipc_message.h" 27 #include "ipc/ipc_message.h"
28 28
29 class BrowserOnlineStateObserver; 29 class BrowserOnlineStateObserver;
30 class ChromeNetLog; 30 class ChromeNetLog;
31 class ChromeResourceDispatcherHostDelegate; 31 class ChromeResourceDispatcherHostDelegate;
32 class CommandLine; 32 class CommandLine;
33 class ChromeFrameFriendOfBrowserProcessImpl; // TODO(joi): Remove
34 class RemoteDebuggingServer; 33 class RemoteDebuggingServer;
35 class TabCloseableStateWatcher; 34 class TabCloseableStateWatcher;
36 35
37 namespace policy { 36 namespace policy {
38 class BrowserPolicyConnector; 37 class BrowserPolicyConnector;
39 }; 38 };
40 39
41 // Real implementation of BrowserProcess that creates and returns the services. 40 // Real implementation of BrowserProcess that creates and returns the services.
42 class BrowserProcessImpl : public BrowserProcess, 41 class BrowserProcessImpl : public BrowserProcess,
43 public base::NonThreadSafe, 42 public base::NonThreadSafe,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual void StartAutoupdateTimer() OVERRIDE; 115 virtual void StartAutoupdateTimer() OVERRIDE;
117 #endif 116 #endif
118 117
119 virtual ChromeNetLog* net_log() OVERRIDE; 118 virtual ChromeNetLog* net_log() OVERRIDE;
120 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; 119 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE;
121 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; 120 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE;
122 virtual ComponentUpdateService* component_updater() OVERRIDE; 121 virtual ComponentUpdateService* component_updater() OVERRIDE;
123 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 122 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
124 123
125 private: 124 private:
126 // TODO(joi): Remove. Temporary hack to get at CreateIOThreadState.
127 friend class ChromeFrameFriendOfBrowserProcessImpl;
128
129 // Must be called right before the IO thread is started. 125 // Must be called right before the IO thread is started.
130 void CreateIOThreadState(); 126 void CreateIOThreadState();
131 127
132 void CreateResourceDispatcherHost(); 128 void CreateResourceDispatcherHost();
133 void CreateMetricsService(); 129 void CreateMetricsService();
134 130
135 void CreateWatchdogThread(); 131 void CreateWatchdogThread();
136 #if defined(OS_CHROMEOS) 132 #if defined(OS_CHROMEOS)
137 void InitializeWebSocketProxyThread(); 133 void InitializeWebSocketProxyThread();
138 #endif 134 #endif
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 #if !defined(OS_CHROMEOS) 274 #if !defined(OS_CHROMEOS)
279 scoped_ptr<ComponentUpdateService> component_updater_; 275 scoped_ptr<ComponentUpdateService> component_updater_;
280 276
281 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; 277 scoped_refptr<CRLSetFetcher> crl_set_fetcher_;
282 #endif 278 #endif
283 279
284 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 280 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
285 }; 281 };
286 282
287 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 283 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/chrome_frame.gyp » ('j') | chrome_frame/test/net/fake_external_tab.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698