| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ppapi/c/pp_completion_callback.h" | 10 #include "ppapi/c/pp_completion_callback.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class PluginInstance; | 21 class PluginInstance; |
| 22 | 22 |
| 23 class PPB_Broker_Impl : public Resource, | 23 class PPB_Broker_Impl : public Resource, |
| 24 public ::ppapi::thunk::PPB_Broker_API, | 24 public ::ppapi::thunk::PPB_Broker_API, |
| 25 public base::SupportsWeakPtr<PPB_Broker_Impl> { | 25 public base::SupportsWeakPtr<PPB_Broker_Impl> { |
| 26 public: | 26 public: |
| 27 virtual ~PPB_Broker_Impl(); | 27 virtual ~PPB_Broker_Impl(); |
| 28 | 28 |
| 29 static PP_Resource Create(PP_Instance instance_id); | 29 static PP_Resource Create(PP_Instance instance_id); |
| 30 | 30 |
| 31 // Resource override. | |
| 32 virtual PPB_Broker_Impl* AsPPB_Broker_Impl() OVERRIDE; | |
| 33 | |
| 34 // ResourceObjectBase override. | 31 // ResourceObjectBase override. |
| 35 virtual ::ppapi::thunk::PPB_Broker_API* AsPPB_Broker_API() OVERRIDE; | 32 virtual ::ppapi::thunk::PPB_Broker_API* AsPPB_Broker_API() OVERRIDE; |
| 36 | 33 |
| 37 // PPB_BrokerTrusted implementation. | 34 // PPB_BrokerTrusted implementation. |
| 38 virtual int32_t Connect(PP_CompletionCallback connect_callback) OVERRIDE; | 35 virtual int32_t Connect(PP_CompletionCallback connect_callback) OVERRIDE; |
| 39 virtual int32_t GetHandle(int32_t* handle) OVERRIDE; | 36 virtual int32_t GetHandle(int32_t* handle) OVERRIDE; |
| 40 | 37 |
| 41 void BrokerConnected(int32_t handle, int32_t result); | 38 void BrokerConnected(int32_t handle, int32_t result); |
| 42 | 39 |
| 43 private: | 40 private: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 54 // Never owned by this object. | 51 // Never owned by this object. |
| 55 int32_t pipe_handle_; | 52 int32_t pipe_handle_; |
| 56 | 53 |
| 57 DISALLOW_COPY_AND_ASSIGN(PPB_Broker_Impl); | 54 DISALLOW_COPY_AND_ASSIGN(PPB_Broker_Impl); |
| 58 }; | 55 }; |
| 59 | 56 |
| 60 } // namespace ppapi | 57 } // namespace ppapi |
| 61 } // namespace webkit | 58 } // namespace webkit |
| 62 | 59 |
| 63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_ | 60 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_ |
| OLD | NEW |