Chromium Code Reviews| Index: content/public/browser/content_browser_client.h |
| diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h |
| index 1441efdfbe8d76b3a789b729b70d05a3d49b259e..e85e4b1f57dfcedf9d06bd9cb1b1986cda5f92b5 100644 |
| --- a/content/public/browser/content_browser_client.h |
| +++ b/content/public/browser/content_browser_client.h |
| @@ -77,6 +77,8 @@ struct ShowDesktopNotificationHostMsgParams; |
| typedef base::Callback< void(const content::MediaStreamDevices&) > |
| MediaResponseCallback; |
| +typedef base::Callback< void(const bool&) > YesNoBoxResponseCallback; |
| + |
| // Embedder API (or SPI) for participating in browser logic, to be implemented |
| // by the client of the content browser. See ChromeContentBrowserClient for the |
| // principal implementation. The methods are assumed to be called on the UI |
| @@ -405,6 +407,12 @@ class ContentBrowserClient { |
| crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| const GURL& url) = 0; |
| #endif |
| + |
| + // Shows a yes/no box to ask for the user's permission with the specified |
| + // message and title. The user's response is sent via |callback|. |
| + virtual void ShowYesNoBox(const string16& title, |
|
Avi (use Gerrit)
2012/03/12 14:45:30
I'm not that familiar with ppapi; how much UI does
|
| + const string16& message, |
| + YesNoBoxResponseCallback* callback) {} |
| }; |
| } // namespace content |