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

Side by Side Diff: content/browser/notification_message_filter.h

Issue 681783004: Implement the PageNotificationDelegate for the new Web Notification path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/Ids/ids/ Created 6 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/notification_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_NOTIFICATION_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_NOTIFICATION_MESSAGE_FILTER_H_
7
8 #include "content/public/browser/browser_message_filter.h"
9 #include "third_party/WebKit/public/platform/WebNotificationPermission.h"
10
11 class GURL;
12
13 namespace content {
14
15 class ResourceContext;
16 struct ShowDesktopNotificationHostMsgParams;
17
18 class NotificationMessageFilter : public BrowserMessageFilter {
19 public:
20 NotificationMessageFilter(
21 int process_id,
22 ResourceContext* resource_context);
23
24 // BrowserMessageFilter implementation. Called on the UI thread.
25 bool OnMessageReceived(const IPC::Message& message) override;
26 void OverrideThreadForMessage(
27 const IPC::Message& message, content::BrowserThread::ID* thread) override;
28
29 protected:
30 ~NotificationMessageFilter() override;
31
32 private:
33 void OnCheckNotificationPermission(
34 const GURL& origin, blink::WebNotificationPermission* permission);
35 void OnShowPlatformNotification(
36 int notification_id, const ShowDesktopNotificationHostMsgParams& params);
37 void OnClosePlatformNotification(int notification_id);
38
39 int process_id_;
40 ResourceContext* resource_context_;
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_BROWSER_NOTIFICATION_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/notification_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698