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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_ppb_talk_private_impl.h
diff --git a/chrome/renderer/chrome_ppb_talk_private_impl.h b/chrome/renderer/chrome_ppb_talk_private_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..6bea37e48189a119963461b353a9a46ec7bc4d26
--- /dev/null
+++ b/chrome/renderer/chrome_ppb_talk_private_impl.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_CHROME_PPB_TALK_PRIVATE_IMPL_H_
+#define CHROME_RENDERER_CHROME_PPB_TALK_PRIVATE_IMPL_H_
+
+#include "ppapi/shared_impl/resource.h"
+#include "ppapi/thunk/ppb_talk_private_api.h"
+
+struct PPB_Talk_Private_1_0;
+
+namespace chrome {
+
+class PPB_Talk_Private_Impl : public ppapi::Resource,
+ public ppapi::thunk::PPB_Talk_Private_API {
+ public:
+ PPB_Talk_Private_Impl(PP_Instance instance);
+ virtual ~PPB_Talk_Private_Impl();
+
+ static const PPB_Talk_Private_1_0* GetInterface();
+
+ // Resource overrides.
+ ppapi::thunk::PPB_Talk_Private_API* AsPPB_Talk_Private_API() { return this; }
+
+ // PPB_Talk_API implementation.
+ int32_t GetPermission(const PP_CompletionCallback& callback);
+
+ // May return null on failure.
+ content::RenderView* GetRenderView();
+
+ void ReplyReceived(int32_t result);
+
+ private:
+ class Observer;
+
+ void InstallMessageFilter();
+
+ scoped_refptr<ppapi::TrackedCallback> callback_;
+
+ scoped_ptr<Observer> observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(PPB_Talk_Private_Impl);
+};
+
+} // namespace chrome
+
+#endif // CHROME_RENDERER_CHROME_PPB_TALK_PRIVATE_IMPL_H_
« 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