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

Side by Side Diff: chrome/browser/renderer_host/pepper/pepper_talk_host.h

Issue 11359147: Convert the Pepper Talk API to use the new resource system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "ppapi/host/resource_host.h"
10 #include "ppapi/proxy/resource_message_params.h"
11
12 namespace content {
13 class BrowserPpapiHost;
14 }
15
16 namespace ppapi {
17 namespace host {
18 struct ReplyMessageContext;
19 }
20 }
21
22 namespace chrome {
23
24 class PepperTalkHost : public ppapi::host::ResourceHost {
25 public:
26 PepperTalkHost(content::BrowserPpapiHost* host,
27 PP_Instance instance,
28 PP_Resource resource);
29 virtual ~PepperTalkHost();
30
31 // ResourceHost override.
32 virtual int32_t OnResourceMessageReceived(
33 const IPC::Message& msg,
34 ppapi::host::HostMessageContext* context) OVERRIDE;
35
36 // Sends the reply.
37 void GotTalkPermission(ppapi::host::ReplyMessageContext reply);
38
39 private:
40 base::WeakPtrFactory<PepperTalkHost> weak_factory_;
41 content::BrowserPpapiHost* browser_ppapi_host_;
42
43 DISALLOW_COPY_AND_ASSIGN(PepperTalkHost);
44 };
45
46 } // namespace chrome
47
48 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_TALK_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698