Expose NotificationPresenter to public
This commit is contained in:
parent
9897f3aab0
commit
6f81d1e29f
5 changed files with 57 additions and 58 deletions
|
@ -13,6 +13,8 @@ namespace brightray {
|
|||
class BrowserContext;
|
||||
class BrowserMainParts;
|
||||
class NetLog;
|
||||
class NotificationPresenter;
|
||||
class PlatformNotificationService;
|
||||
|
||||
class BrowserClient : public content::ContentBrowserClient {
|
||||
public:
|
||||
|
@ -24,6 +26,8 @@ class BrowserClient : public content::ContentBrowserClient {
|
|||
BrowserContext* browser_context();
|
||||
BrowserMainParts* browser_main_parts() { return browser_main_parts_; }
|
||||
|
||||
NotificationPresenter* GetNotificationPresenter();
|
||||
|
||||
protected:
|
||||
// Subclasses should override this to provide their own BrowserMainParts
|
||||
// implementation. The lifetime of the returned instance is managed by the
|
||||
|
@ -51,6 +55,9 @@ class BrowserClient : public content::ContentBrowserClient {
|
|||
NetLog net_log_;
|
||||
|
||||
private:
|
||||
scoped_ptr<PlatformNotificationService> notification_service_;
|
||||
scoped_ptr<NotificationPresenter> notification_presenter_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(BrowserClient);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue