OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_ANDROID_INFOBARS_AUTO_LOGIN_PROMPTER_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_PROMPTER_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_PROMPTER_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_PROMPTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual ~AutoLoginPrompter(); | 46 virtual ~AutoLoginPrompter(); |
47 | 47 |
48 static void ShowInfoBarUIThread(Params params, | 48 static void ShowInfoBarUIThread(Params params, |
49 const GURL& url, | 49 const GURL& url, |
50 int child_id, | 50 int child_id, |
51 int route_id); | 51 int route_id); |
52 | 52 |
53 virtual void DidStopLoading( | 53 virtual void DidStopLoading( |
54 content::RenderViewHost* render_view_host) OVERRIDE; | 54 content::RenderViewHost* render_view_host) OVERRIDE; |
55 | 55 |
56 virtual void WebContentsDestroyed( | 56 virtual void WebContentsDestroyed() OVERRIDE; |
57 content::WebContents* web_contents) OVERRIDE; | |
58 | 57 |
59 // Add the infobar to the WebContents, if it's still needed. | 58 // Add the infobar to the WebContents, if it's still needed. |
60 void AddInfoBarToWebContents(); | 59 void AddInfoBarToWebContents(); |
61 | 60 |
62 const Params params_; | 61 const Params params_; |
63 const GURL url_; | 62 const GURL url_; |
64 bool infobar_shown_; | 63 bool infobar_shown_; |
65 | 64 |
66 DISALLOW_COPY_AND_ASSIGN(AutoLoginPrompter); | 65 DISALLOW_COPY_AND_ASSIGN(AutoLoginPrompter); |
67 }; | 66 }; |
68 | 67 |
69 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_PROMPTER_H_ | 68 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_LOGIN_PROMPTER_H_ |
OLD | NEW |