| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <stdint.h> |
| 6 |
| 5 #include "ppapi/cpp/instance.h" | 7 #include "ppapi/cpp/instance.h" |
| 6 #include "ppapi/cpp/module.h" | 8 #include "ppapi/cpp/module.h" |
| 7 | 9 |
| 8 // This is the simplest possible C++ Pepper plugin that does nothing. | 10 // This is the simplest possible C++ Pepper plugin that does nothing. |
| 9 | 11 |
| 10 // This object represents one time the page says <embed>. | 12 // This object represents one time the page says <embed>. |
| 11 class MyInstance : public pp::Instance { | 13 class MyInstance : public pp::Instance { |
| 12 public: | 14 public: |
| 13 explicit MyInstance(PP_Instance instance) : pp::Instance(instance) {} | 15 explicit MyInstance(PP_Instance instance) : pp::Instance(instance) {} |
| 14 virtual ~MyInstance() {} | 16 virtual ~MyInstance() {} |
| (...skipping 17 matching lines...) Expand all Loading... |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 namespace pp { | 36 namespace pp { |
| 35 | 37 |
| 36 // Factory function for your specialization of the Module object. | 38 // Factory function for your specialization of the Module object. |
| 37 Module* CreateModule() { | 39 Module* CreateModule() { |
| 38 return new MyModule(); | 40 return new MyModule(); |
| 39 } | 41 } |
| 40 | 42 |
| 41 } // namespace pp | 43 } // namespace pp |
| OLD | NEW |