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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/timer.h" | 11 #include "base/timer.h" |
12 #include "chrome/browser/chromeos/login/screen_observer.h" | 12 #include "chrome/browser/chromeos/login/screen_observer.h" |
13 #include "content/browser/tab_contents/tab_contents_delegate.h" | 13 #include "content/browser/tab_contents/tab_contents_delegate.h" |
14 | 14 |
15 class GURL; | |
16 | |
17 namespace chromeos { | 15 namespace chromeos { |
18 | 16 |
19 // Base class for wizard screen that holds web page. | 17 // Base class for wizard screen that holds web page. |
20 class WebPageScreen : public TabContentsDelegate { | 18 class WebPageScreen : public TabContentsDelegate { |
21 public: | 19 public: |
22 explicit WebPageScreen(); | 20 explicit WebPageScreen(); |
23 virtual ~WebPageScreen(); | 21 virtual ~WebPageScreen(); |
24 | 22 |
25 // Exits from the screen with the specified exit code. | 23 // Exits from the screen with the specified exit code. |
26 virtual void CloseScreen(ScreenObserver::ExitCodes code) = 0; | 24 virtual void CloseScreen(ScreenObserver::ExitCodes code) = 0; |
(...skipping 15 matching lines...) Expand all Loading... |
42 private: | 40 private: |
43 // Timer used for network response timeout. | 41 // Timer used for network response timeout. |
44 base::OneShotTimer<WebPageScreen> timeout_timer_; | 42 base::OneShotTimer<WebPageScreen> timeout_timer_; |
45 | 43 |
46 DISALLOW_COPY_AND_ASSIGN(WebPageScreen); | 44 DISALLOW_COPY_AND_ASSIGN(WebPageScreen); |
47 }; | 45 }; |
48 | 46 |
49 } // namespace chromeos | 47 } // namespace chromeos |
50 | 48 |
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ | 49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_SCREEN_H_ |
OLD | NEW |