OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_FIRST_RUN_DRIVE_FIRST_RUN_CONTROLLER_H_ | 4 #ifndef CHROME_BROWSER_CHROMEOS_FIRST_RUN_DRIVE_FIRST_RUN_CONTROLLER_H_ |
5 #define CHROME_BROWSER_CHROMEOS_FIRST_RUN_DRIVE_FIRST_RUN_CONTROLLER_H_ | 5 #define CHROME_BROWSER_CHROMEOS_FIRST_RUN_DRIVE_FIRST_RUN_CONTROLLER_H_ |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Called when timed out waiting for offline initialization to complete. | 70 // Called when timed out waiting for offline initialization to complete. |
71 void OnWebContentsTimedOut(); | 71 void OnWebContentsTimedOut(); |
72 | 72 |
73 // Creates and shows a system notification when enable offline succeeds. | 73 // Creates and shows a system notification when enable offline succeeds. |
74 void ShowNotification(); | 74 void ShowNotification(); |
75 | 75 |
76 // Cleans up internal state and schedules self for deletion. | 76 // Cleans up internal state and schedules self for deletion. |
77 void CleanUp(); | 77 void CleanUp(); |
78 | 78 |
79 Profile* profile_; | 79 Profile* profile_; |
80 scoped_ptr<DriveWebContentsManager> web_contents_manager_; | 80 std::unique_ptr<DriveWebContentsManager> web_contents_manager_; |
81 base::OneShotTimer web_contents_timer_; | 81 base::OneShotTimer web_contents_timer_; |
82 base::OneShotTimer initial_delay_timer_; | 82 base::OneShotTimer initial_delay_timer_; |
83 bool started_; | 83 bool started_; |
84 base::ObserverList<Observer> observer_list_; | 84 base::ObserverList<Observer> observer_list_; |
85 | 85 |
86 int initial_delay_secs_; | 86 int initial_delay_secs_; |
87 int web_contents_timeout_secs_; | 87 int web_contents_timeout_secs_; |
88 std::string drive_offline_endpoint_url_; | 88 std::string drive_offline_endpoint_url_; |
89 std::string drive_hosted_app_id_; | 89 std::string drive_hosted_app_id_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(DriveFirstRunController); | 91 DISALLOW_COPY_AND_ASSIGN(DriveFirstRunController); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace chromeos | 94 } // namespace chromeos |
95 | 95 |
96 #endif // CHROME_BROWSER_CHROMEOS_FIRST_RUN_DRIVE_FIRST_RUN_CONTROLLER_H_ | 96 #endif // CHROME_BROWSER_CHROMEOS_FIRST_RUN_DRIVE_FIRST_RUN_CONTROLLER_H_ |
OLD | NEW |