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_UI_BROWSER_DIALOGS_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 namespace net { | 48 namespace net { |
49 class AuthChallengeInfo; | 49 class AuthChallengeInfo; |
50 class URLRequest; | 50 class URLRequest; |
51 } | 51 } |
52 | 52 |
53 namespace payments { | 53 namespace payments { |
54 class PaymentRequest; | 54 class PaymentRequest; |
55 class PaymentRequestDialog; | 55 class PaymentRequestDialog; |
56 } | 56 } |
57 | 57 |
| 58 namespace safe_browsing { |
| 59 class SRTPromptController; |
| 60 } |
| 61 |
58 namespace security_state { | 62 namespace security_state { |
59 struct SecurityInfo; | 63 struct SecurityInfo; |
60 } // namespace security_state | 64 } // namespace security_state |
61 | 65 |
62 namespace task_manager { | 66 namespace task_manager { |
63 class TaskManagerTableModel; | 67 class TaskManagerTableModel; |
64 } | 68 } |
65 | 69 |
66 namespace ui { | 70 namespace ui { |
67 class WebDialogDelegate; | 71 class WebDialogDelegate; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 content::WebContents* web_contents, | 183 content::WebContents* web_contents, |
180 const gfx::Point& anchor); | 184 const gfx::Point& anchor); |
181 private: | 185 private: |
182 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); | 186 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); |
183 }; | 187 }; |
184 | 188 |
185 #endif // OS_MACOSX | 189 #endif // OS_MACOSX |
186 | 190 |
187 #endif // TOOLKIT_VIEWS | 191 #endif // TOOLKIT_VIEWS |
188 | 192 |
| 193 #if defined(OS_WIN) |
| 194 |
| 195 // Shows the Chrome Cleanup dialog asking the user if they want to clean their |
| 196 // system from unwanted software. This is called when unwanted software has been |
| 197 // detected on the system. |
| 198 void ShowSRTPrompt(Browser* browser, |
| 199 safe_browsing::SRTPromptController* controller); |
| 200 |
| 201 #endif // OS_WIN |
| 202 |
189 } // namespace chrome | 203 } // namespace chrome |
190 | 204 |
191 #if defined(OS_CHROMEOS) | 205 #if defined(OS_CHROMEOS) |
192 | 206 |
193 // This callback informs the package name of the app selected by the user, along | 207 // This callback informs the package name of the app selected by the user, along |
194 // with the reason why the Bubble was closed. The string param must have a valid | 208 // with the reason why the Bubble was closed. The string param must have a valid |
195 // package name, except when the CloseReason is ERROR or DIALOG_DEACTIVATED, for | 209 // package name, except when the CloseReason is ERROR or DIALOG_DEACTIVATED, for |
196 // these cases we return a dummy value which won't be used at all and has no | 210 // these cases we return a dummy value which won't be used at all and has no |
197 // significance. | 211 // significance. |
198 using IntentPickerResponse = | 212 using IntentPickerResponse = |
199 base::Callback<void(const std::string&, | 213 base::Callback<void(const std::string&, |
200 arc::ArcNavigationThrottle::CloseReason)>; | 214 arc::ArcNavigationThrottle::CloseReason)>; |
201 | 215 |
202 // Return a pointer to the IntentPickerBubbleView::ShowBubble method. | 216 // Return a pointer to the IntentPickerBubbleView::ShowBubble method. |
203 using BubbleShowPtr = | 217 using BubbleShowPtr = |
204 void (*)(content::WebContents*, | 218 void (*)(content::WebContents*, |
205 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 219 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
206 const IntentPickerResponse&); | 220 const IntentPickerResponse&); |
207 | 221 |
208 BubbleShowPtr ShowIntentPickerBubble(); | 222 BubbleShowPtr ShowIntentPickerBubble(); |
209 | 223 |
210 #endif // OS_CHROMEOS | 224 #endif // OS_CHROMEOS |
211 | 225 |
212 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 226 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |