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 #include "base/at_exit.h"
6 #include "base/compiler_specific.h"
7 #include "ppapi/cpp/instance.h"
8 #include "ppapi/cpp/module.h"
9 #include "remoting/client/plugin/chromoting_instance.h"
13 class ChromotingModule
: public pp::Module
{
15 virtual pp::Instance
* CreateInstance(PP_Instance instance
) override
{
16 pp::Instance
* result
= new ChromotingInstance(instance
);
20 base::AtExitManager at_exit_manager_
;
23 } // namespace remoting
27 // Factory function for your specialization of the Module object.
28 Module
* CreateModule() {
29 return new remoting::ChromotingModule();