| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { | 58 namespace safe_browsing { |
| 59 class SRTPromptController; | 59 class ChromeCleanerDialogController; |
| 60 } | 60 } |
| 61 | 61 |
| 62 namespace security_state { | 62 namespace security_state { |
| 63 struct SecurityInfo; | 63 struct SecurityInfo; |
| 64 } // namespace security_state | 64 } // namespace security_state |
| 65 | 65 |
| 66 namespace task_manager { | 66 namespace task_manager { |
| 67 class TaskManagerTableModel; | 67 class TaskManagerTableModel; |
| 68 } | 68 } |
| 69 | 69 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 // Record an UMA metric counting the creation of a dialog box of this type. | 239 // Record an UMA metric counting the creation of a dialog box of this type. |
| 240 void RecordDialogCreation(DialogIdentifier identifier); | 240 void RecordDialogCreation(DialogIdentifier identifier); |
| 241 | 241 |
| 242 #if defined(OS_WIN) | 242 #if defined(OS_WIN) |
| 243 | 243 |
| 244 // Shows the Chrome Cleanup dialog asking the user if they want to clean their | 244 // Shows the Chrome Cleanup dialog asking the user if they want to clean their |
| 245 // system from unwanted software. This is called when unwanted software has been | 245 // system from unwanted software. This is called when unwanted software has been |
| 246 // detected on the system. | 246 // detected on the system. |
| 247 void ShowSRTPrompt(Browser* browser, | 247 void ShowChromeCleanerPrompt( |
| 248 safe_browsing::SRTPromptController* controller); | 248 Browser* browser, |
| 249 safe_browsing::ChromeCleanerDialogController* controller); |
| 249 | 250 |
| 250 #endif // OS_WIN | 251 #endif // OS_WIN |
| 251 | 252 |
| 252 } // namespace chrome | 253 } // namespace chrome |
| 253 | 254 |
| 254 #if defined(OS_CHROMEOS) | 255 #if defined(OS_CHROMEOS) |
| 255 | 256 |
| 256 // This callback informs the package name of the app selected by the user, along | 257 // This callback informs the package name of the app selected by the user, along |
| 257 // with the reason why the Bubble was closed. The string param must have a valid | 258 // with the reason why the Bubble was closed. The string param must have a valid |
| 258 // package name, except when the CloseReason is ERROR or DIALOG_DEACTIVATED, for | 259 // package name, except when the CloseReason is ERROR or DIALOG_DEACTIVATED, for |
| 259 // these cases we return a dummy value which won't be used at all and has no | 260 // these cases we return a dummy value which won't be used at all and has no |
| 260 // significance. | 261 // significance. |
| 261 using IntentPickerResponse = | 262 using IntentPickerResponse = |
| 262 base::Callback<void(const std::string&, | 263 base::Callback<void(const std::string&, |
| 263 arc::ArcNavigationThrottle::CloseReason)>; | 264 arc::ArcNavigationThrottle::CloseReason)>; |
| 264 | 265 |
| 265 // Return a pointer to the IntentPickerBubbleView::ShowBubble method. | 266 // Return a pointer to the IntentPickerBubbleView::ShowBubble method. |
| 266 using BubbleShowPtr = | 267 using BubbleShowPtr = |
| 267 void (*)(content::WebContents*, | 268 void (*)(content::WebContents*, |
| 268 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 269 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
| 269 const IntentPickerResponse&); | 270 const IntentPickerResponse&); |
| 270 | 271 |
| 271 BubbleShowPtr ShowIntentPickerBubble(); | 272 BubbleShowPtr ShowIntentPickerBubble(); |
| 272 | 273 |
| 273 #endif // OS_CHROMEOS | 274 #endif // OS_CHROMEOS |
| 274 | 275 |
| 275 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 276 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |