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

Side by Side Diff: chrome/browser/pepper_gtalk_message_filter.h

Issue 10071036: RefCounted types should not have public destructors, chrome/browser/ part 6 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implementation fixes Created 8 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 | Annotate | Revision Log
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 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_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_test_util.cc ('k') | chrome/browser/pepper_gtalk_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698