Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
message_handler.h
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.
4 
5 #ifndef PPAPI_CPP_MESSAGE_HANDLER_H_
6 #define PPAPI_CPP_MESSAGE_HANDLER_H_
7 
8 namespace pp {
9 
16  public:
17  virtual ~MessageHandler() {};
18 
26  virtual void HandleMessage(pp::InstanceHandle instance,
27  const Var& message_data) = 0;
28 
45  const Var& message_data) = 0;
46 
52  virtual void WasUnregistered(pp::InstanceHandle instance) = 0;
53 };
54 
55 } // namespace pp
56 
57 #endif // PPAPI_CPP_MESSAGE_HANDLER_H_
Definition: message_handler.h:15
virtual void WasUnregistered(pp::InstanceHandle instance)=0
virtual pp::Var HandleBlockingMessage(pp::InstanceHandle instance, const Var &message_data)=0
Definition: instance_handle.h:44
A generic type used for passing data types between the module and the page.
Definition: var.h:23
virtual void HandleMessage(pp::InstanceHandle instance, const Var &message_data)=0