1 // Copyright 2014 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.
5 #ifndef PPAPI_PROXY_PPP_FIND_PROXY_H_
6 #define PPAPI_PROXY_PPP_FIND_PROXY_H_
10 #include "ppapi/c/private/ppp_find_private.h"
11 #include "ppapi/proxy/interface_proxy.h"
17 class PPP_Find_Proxy
: public InterfaceProxy
{
19 explicit PPP_Find_Proxy(Dispatcher
* dispatcher
);
20 virtual ~PPP_Find_Proxy();
22 static const PPP_Find_Private
* GetProxyInterface();
24 // InterfaceProxy implementation.
25 virtual bool OnMessageReceived(const IPC::Message
& msg
);
29 void OnPluginMsgStartFind(PP_Instance instance
,
30 const std::string
& text
);
31 void OnPluginMsgSelectFindResult(PP_Instance instance
,
33 void OnPluginMsgStopFind(PP_Instance instance
);
35 // When this proxy is in the plugin side, this value caches the interface
36 // pointer so we don't have to retrieve it from the dispatcher each time.
37 // In the host, this value is always NULL.
38 const PPP_Find_Private
* ppp_find_
;
40 DISALLOW_COPY_AND_ASSIGN(PPP_Find_Proxy
);
46 #endif // PPAPI_PROXY_PPP_FIND_PROXY_H_