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 CHROME_BROWSER_PEPPER_GTALK_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_PEPPER_GTALK_MESSAGE_FILTER_H_ |
6 #define CHROME_BROWSER_PEPPER_GTALK_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_PEPPER_GTALK_MESSAGE_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/browser/browser_message_filter.h" | 9 #include "content/public/browser/browser_message_filter.h" |
10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 | 11 |
12 // A message filter for Gtalk-specific pepper messages. | 12 // A message filter for Gtalk-specific pepper messages. |
13 class PepperGtalkMessageFilter : public content::BrowserMessageFilter { | 13 class PepperGtalkMessageFilter : public content::BrowserMessageFilter { |
14 public: | 14 public: |
15 PepperGtalkMessageFilter(); | 15 PepperGtalkMessageFilter(); |
16 virtual ~PepperGtalkMessageFilter(); | |
17 | 16 |
18 // content::BrowserMessageFilter methods. | 17 // content::BrowserMessageFilter methods. |
19 virtual void OverrideThreadForMessage( | 18 virtual void OverrideThreadForMessage( |
20 const IPC::Message& message, | 19 const IPC::Message& message, |
21 content::BrowserThread::ID* thread) OVERRIDE; | 20 content::BrowserThread::ID* thread) OVERRIDE; |
22 virtual bool OnMessageReceived(const IPC::Message& message, | 21 virtual bool OnMessageReceived(const IPC::Message& message, |
23 bool* message_was_ok) OVERRIDE; | 22 bool* message_was_ok) OVERRIDE; |
24 | 23 |
25 private: | 24 private: |
| 25 virtual ~PepperGtalkMessageFilter(); |
| 26 |
26 void OnTalkGetPermission(uint32 plugin_dispatcher_id, | 27 void OnTalkGetPermission(uint32 plugin_dispatcher_id, |
27 PP_Resource resource); | 28 PP_Resource resource); |
28 | 29 |
29 DISALLOW_COPY_AND_ASSIGN(PepperGtalkMessageFilter); | 30 DISALLOW_COPY_AND_ASSIGN(PepperGtalkMessageFilter); |
30 }; | 31 }; |
31 | 32 |
32 #endif // CHROME_BROWSER_PEPPER_GTALK_MESSAGE_FILTER_H_ | 33 #endif // CHROME_BROWSER_PEPPER_GTALK_MESSAGE_FILTER_H_ |
OLD | NEW |