OLD | NEW |
---|---|
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_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/task/cancelable_task_tracker.h" | 9 #include "base/task/cancelable_task_tracker.h" |
10 #include "chrome/browser/chrome_browser_main_linux.h" | 10 #include "chrome/browser/chrome_browser_main_linux.h" |
11 #include "chrome/browser/chromeos/external_metrics.h" | 11 #include "chrome/browser/chromeos/external_metrics.h" |
12 #include "chrome/browser/chromeos/version_loader.h" | 12 #include "chrome/browser/chromeos/version_loader.h" |
13 #include "net/base/ip_endpoint.h" | |
Daniel Erat
2014/08/21 22:17:37
nit: you don't need to include this in the header;
| |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 class PowerSaveBlocker; | 16 class PowerSaveBlocker; |
16 } | 17 } |
17 | 18 |
18 namespace chromeos { | 19 namespace chromeos { |
19 | 20 |
20 class DataPromoNotification; | 21 class DataPromoNotification; |
21 class EventRewriter; | 22 class EventRewriter; |
22 class EventRewriterController; | 23 class EventRewriterController; |
(...skipping 29 matching lines...) Expand all Loading... | |
52 // Stages called from PreMainMessageLoopRun. | 53 // Stages called from PreMainMessageLoopRun. |
53 virtual void PreProfileInit() OVERRIDE; | 54 virtual void PreProfileInit() OVERRIDE; |
54 virtual void PostProfileInit() OVERRIDE; | 55 virtual void PostProfileInit() OVERRIDE; |
55 virtual void PreBrowserStart() OVERRIDE; | 56 virtual void PreBrowserStart() OVERRIDE; |
56 virtual void PostBrowserStart() OVERRIDE; | 57 virtual void PostBrowserStart() OVERRIDE; |
57 | 58 |
58 virtual void PostMainMessageLoopRun() OVERRIDE; | 59 virtual void PostMainMessageLoopRun() OVERRIDE; |
59 virtual void PostDestroyThreads() OVERRIDE; | 60 virtual void PostDestroyThreads() OVERRIDE; |
60 | 61 |
61 private: | 62 private: |
63 static void OnGCMConnected(const net::IPEndPoint& ip_endpoint); | |
64 static void OnGCMDisconnected(); | |
65 static void GCMErrorCallback(const std::string &error_name, | |
Daniel Erat
2014/08/21 22:17:37
nit: '&' should go to the left of the space on thi
Luigi Semenzato
2014/08/22 01:08:19
Done.
| |
66 const std::string &error); | |
67 | |
62 scoped_ptr<default_app_order::ExternalLoader> app_order_loader_; | 68 scoped_ptr<default_app_order::ExternalLoader> app_order_loader_; |
63 scoped_ptr<ExtensionSystemEventObserver> extension_system_event_observer_; | 69 scoped_ptr<ExtensionSystemEventObserver> extension_system_event_observer_; |
64 scoped_ptr<PeripheralBatteryObserver> peripheral_battery_observer_; | 70 scoped_ptr<PeripheralBatteryObserver> peripheral_battery_observer_; |
65 scoped_ptr<PowerPrefs> power_prefs_; | 71 scoped_ptr<PowerPrefs> power_prefs_; |
66 scoped_ptr<PowerButtonObserver> power_button_observer_; | 72 scoped_ptr<PowerButtonObserver> power_button_observer_; |
67 scoped_ptr<content::PowerSaveBlocker> retail_mode_power_save_blocker_; | 73 scoped_ptr<content::PowerSaveBlocker> retail_mode_power_save_blocker_; |
68 scoped_ptr<IdleActionWarningObserver> idle_action_warning_observer_; | 74 scoped_ptr<IdleActionWarningObserver> idle_action_warning_observer_; |
69 scoped_ptr<DataPromoNotification> data_promo_notification_; | 75 scoped_ptr<DataPromoNotification> data_promo_notification_; |
70 | 76 |
71 scoped_ptr<internal::DBusServices> dbus_services_; | 77 scoped_ptr<internal::DBusServices> dbus_services_; |
72 | 78 |
73 scoped_ptr<EventRewriterController> keyboard_event_rewriters_; | 79 scoped_ptr<EventRewriterController> keyboard_event_rewriters_; |
74 | 80 |
75 scoped_refptr<chromeos::ExternalMetrics> external_metrics_; | 81 scoped_refptr<chromeos::ExternalMetrics> external_metrics_; |
76 | 82 |
77 VersionLoader cros_version_loader_; | 83 VersionLoader cros_version_loader_; |
78 base::CancelableTaskTracker tracker_; | 84 base::CancelableTaskTracker tracker_; |
79 bool use_new_network_change_notifier_; | 85 bool use_new_network_change_notifier_; |
80 | 86 |
81 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 87 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
82 }; | 88 }; |
83 | 89 |
84 } // namespace chromeos | 90 } // namespace chromeos |
85 | 91 |
86 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
OLD | NEW |