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

Side by Side Diff: webkit/plugins/ppapi/ppb_broker_impl.h

Issue 7082036: Convert more interfaces to the new thunk system. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
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 14 matching lines...) Expand all
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. 31 // Resource override.
32 virtual PPB_Broker_Impl* AsPPB_Broker_Impl() OVERRIDE; 32 virtual PPB_Broker_Impl* AsPPB_Broker_Impl() OVERRIDE;
33 33
34 // ResourceObjectBase override. 34 // ResourceObjectBase override.
35 virtual ::ppapi::thunk::PPB_Broker_API* AsBroker_API() OVERRIDE; 35 virtual ::ppapi::thunk::PPB_Broker_API* AsPPB_Broker_API() OVERRIDE;
36 36
37 // PPB_BrokerTrusted implementation. 37 // PPB_BrokerTrusted implementation.
38 virtual int32_t Connect(PP_CompletionCallback connect_callback) OVERRIDE; 38 virtual int32_t Connect(PP_CompletionCallback connect_callback) OVERRIDE;
39 virtual int32_t GetHandle(int32_t* handle) OVERRIDE; 39 virtual int32_t GetHandle(int32_t* handle) OVERRIDE;
40 40
41 void BrokerConnected(int32_t handle, int32_t result); 41 void BrokerConnected(int32_t handle, int32_t result);
42 42
43 private: 43 private:
44 explicit PPB_Broker_Impl(PluginInstance* instance); 44 explicit PPB_Broker_Impl(PluginInstance* instance);
45 45
46 // PluginDelegate ppapi broker object. 46 // PluginDelegate ppapi broker object.
47 // We don't own this pointer but are responsible for calling Disconnect on it. 47 // We don't own this pointer but are responsible for calling Disconnect on it.
48 PluginDelegate::PpapiBroker* broker_; 48 PluginDelegate::PpapiBroker* broker_;
49 49
50 // Callback invoked from BrokerConnected. 50 // Callback invoked from BrokerConnected.
51 scoped_refptr<TrackedCompletionCallback> connect_callback_; 51 scoped_refptr<TrackedCompletionCallback> connect_callback_;
52 52
53 // Pipe handle for the plugin instance to use to communicate with the broker. 53 // Pipe handle for the plugin instance to use to communicate with the broker.
54 // Never owned by this object. 54 // Never owned by this object.
55 int32_t pipe_handle_; 55 int32_t pipe_handle_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(PPB_Broker_Impl); 57 DISALLOW_COPY_AND_ASSIGN(PPB_Broker_Impl);
58 }; 58 };
59 59
60 } // namespace ppapi 60 } // namespace ppapi
61 } // namespace webkit 61 } // namespace webkit
62 62
63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_ 63 #endif // WEBKIT_PLUGINS_PPAPI_PPB_BROKER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698