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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 virtual MediaObserver* GetMediaObserver(); | 422 virtual MediaObserver* GetMediaObserver(); |
423 | 423 |
424 // Asks permission to show desktop notifications. | 424 // Asks permission to show desktop notifications. |
425 virtual void RequestDesktopNotificationPermission( | 425 virtual void RequestDesktopNotificationPermission( |
426 const GURL& source_origin, | 426 const GURL& source_origin, |
427 int callback_context, | 427 int callback_context, |
428 int render_process_id, | 428 int render_process_id, |
429 int render_view_id) {} | 429 int render_view_id) {} |
430 | 430 |
431 // Checks if the given page has permission to show desktop notifications. | 431 // Checks if the given page has permission to show desktop notifications. |
432 // This is called on the IO thread. | 432 // This is called on the UI thread. |
433 virtual WebKit::WebNotificationPresenter::Permission | 433 virtual WebKit::WebNotificationPresenter::Permission |
434 CheckDesktopNotificationPermission( | 434 CheckDesktopNotificationPermission( |
435 const GURL& source_url, | 435 const GURL& source_url, |
436 ResourceContext* context, | 436 ResourceContext* context, |
437 int render_process_id); | 437 int render_process_id); |
438 | 438 |
439 // Show a desktop notification. If |worker| is true, the request came from an | 439 // Show a desktop notification. If |worker| is true, the request came from an |
440 // HTML5 web worker, otherwise, it came from a renderer. | 440 // HTML5 web worker, otherwise, it came from a renderer. |
441 virtual void ShowDesktopNotification( | 441 virtual void ShowDesktopNotification( |
442 const ShowDesktopNotificationHostMsgParams& params, | 442 const ShowDesktopNotificationHostMsgParams& params, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 // This is called on a worker thread. | 596 // This is called on a worker thread. |
597 virtual | 597 virtual |
598 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 598 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
599 const GURL& url); | 599 const GURL& url); |
600 #endif | 600 #endif |
601 }; | 601 }; |
602 | 602 |
603 } // namespace content | 603 } // namespace content |
604 | 604 |
605 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 605 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |