Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 25492006: Makes the response to CheckNotificationPermission asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698