OLD | NEW |
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_ |
11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
19 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
20 #include "base/timer.h" | 20 #include "base/timer.h" |
21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
22 #include "chrome/browser/download/download_status_updater.h" | 22 #include "chrome/browser/download/download_status_updater.h" |
23 #include "chrome/browser/prefs/pref_change_registrar.h" | 23 #include "chrome/browser/prefs/pref_change_registrar.h" |
24 #include "chrome/browser/prefs/pref_member.h" | 24 #include "chrome/browser/prefs/pref_member.h" |
25 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 25 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
26 #include "content/common/notification_observer.h" | 26 #include "content/common/notification_observer.h" |
27 #include "content/common/notification_registrar.h" | 27 #include "content/common/notification_registrar.h" |
28 #include "ipc/ipc_message.h" | 28 #include "ipc/ipc_message.h" |
29 | 29 |
| 30 class BrowserOnlineStateObserver; |
30 class ChromeNetLog; | 31 class ChromeNetLog; |
31 class ChromeResourceDispatcherHostDelegate; | 32 class ChromeResourceDispatcherHostDelegate; |
32 class CommandLine; | 33 class CommandLine; |
33 class DevToolsHttpProtocolHandler; | 34 class DevToolsHttpProtocolHandler; |
34 class DevToolsProtocolHandler; | 35 class DevToolsProtocolHandler; |
35 class FilePath; | 36 class FilePath; |
36 class NotificationService; | 37 class NotificationService; |
37 class PluginDataRemover; | 38 class PluginDataRemover; |
38 class TabCloseableStateWatcher; | 39 class TabCloseableStateWatcher; |
39 | 40 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 void OnAutoupdateTimer(); | 308 void OnAutoupdateTimer(); |
308 bool CanAutorestartForUpdate() const; | 309 bool CanAutorestartForUpdate() const; |
309 void RestartPersistentInstance(); | 310 void RestartPersistentInstance(); |
310 #endif // defined(OS_WIN) || defined(OS_LINUX) | 311 #endif // defined(OS_WIN) || defined(OS_LINUX) |
311 | 312 |
312 #if defined(OS_CHROMEOS) | 313 #if defined(OS_CHROMEOS) |
313 scoped_refptr<chromeos::ProxyConfigServiceImpl> | 314 scoped_refptr<chromeos::ProxyConfigServiceImpl> |
314 chromeos_proxy_config_service_impl_; | 315 chromeos_proxy_config_service_impl_; |
315 #endif | 316 #endif |
316 | 317 |
| 318 // Per-process listener for online state changes. |
| 319 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; |
| 320 |
317 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 321 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
318 }; | 322 }; |
319 | 323 |
320 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 324 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |