| 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_
|
|
|