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

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

Issue 219653002: Push API: send and receive IPC messages for registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up includes. Created 6 years, 8 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
« no previous file with comments | « no previous file | content/browser/push_messaging_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_PUSH_MESSAGING_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_
7
8 #include <string>
9
10 #include "content/public/browser/browser_message_filter.h"
11 #include "url/gurl.h"
12
13 namespace content {
14
15 class PushMessagingMessageFilter : public BrowserMessageFilter {
16 public:
17 PushMessagingMessageFilter();
18
19 private:
20 virtual ~PushMessagingMessageFilter();
21
22 // BrowserMessageFilter implementation.
23 virtual bool OnMessageReceived(const IPC::Message& message,
24 bool* message_was_ok) OVERRIDE;
25
26 void OnRegister(int routing_id,
27 int callbacks_id,
28 const std::string& sender_id);
29
30 void DidRegister(int routing_id,
31 int callbacks_id,
32 const GURL& endpoint,
33 const std::string& registration_id,
34 bool error);
35
36 DISALLOW_COPY_AND_ASSIGN(PushMessagingMessageFilter);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/push_messaging_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698