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

Side by Side Diff: chrome/renderer/chrome_ppb_talk_private_impl.h

Issue 9666020: Add a private PPB_Talk_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
(Empty)
1 // Copyright (c) 2011 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_RENDERER_CHROME_PPB_TALK_PRIVATE_IMPL_H_
6 #define CHROME_RENDERER_CHROME_PPB_TALK_PRIVATE_IMPL_H_
7
8 #include "ppapi/shared_impl/resource.h"
9 #include "ppapi/thunk/ppb_talk_private_api.h"
10
11 struct PPB_Talk_Private_1_0;
12
13 namespace chrome {
14
15 class PPB_Talk_Private_Impl : public ppapi::Resource,
16 public ppapi::thunk::PPB_Talk_Private_API {
17 public:
18 PPB_Talk_Private_Impl(PP_Instance instance);
19 virtual ~PPB_Talk_Private_Impl();
20
21 static const PPB_Talk_Private_1_0* GetInterface();
22
23 // Resource overrides.
24 ppapi::thunk::PPB_Talk_Private_API* AsPPB_Talk_Private_API() { return this; }
25
26 // PPB_Talk_API implementation.
27 int32_t GetPermission(const PP_CompletionCallback& callback);
28
29 // May return null on failure.
30 content::RenderView* GetRenderView();
31
32 void ReplyReceived(int32_t result);
33
34 private:
35 class Observer;
36
37 void InstallMessageFilter();
38
39 scoped_refptr<ppapi::TrackedCallback> callback_;
40
41 scoped_ptr<Observer> observer_;
42
43 DISALLOW_COPY_AND_ASSIGN(PPB_Talk_Private_Impl);
44 };
45
46 } // namespace chrome
47
48 #endif // CHROME_RENDERER_CHROME_PPB_TALK_PRIVATE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_ppapi_interfaces.cc ('k') | chrome/renderer/chrome_ppb_talk_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698