| OLD | NEW |
| 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 #include <string.h> | 5 #include <string.h> |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "ppapi/cpp/audio_config.h" | 10 #include "ppapi/cpp/audio_config.h" |
| 11 #include "ppapi/cpp/completion_callback.h" | |
| 12 #include "ppapi/cpp/dev/audio_input_dev.h" | 11 #include "ppapi/cpp/dev/audio_input_dev.h" |
| 13 #include "ppapi/cpp/graphics_2d.h" | 12 #include "ppapi/cpp/graphics_2d.h" |
| 14 #include "ppapi/cpp/image_data.h" | 13 #include "ppapi/cpp/image_data.h" |
| 15 #include "ppapi/cpp/instance.h" | 14 #include "ppapi/cpp/instance.h" |
| 16 #include "ppapi/cpp/logging.h" | 15 #include "ppapi/cpp/logging.h" |
| 17 #include "ppapi/cpp/module.h" | 16 #include "ppapi/cpp/module.h" |
| 18 #include "ppapi/cpp/rect.h" | 17 #include "ppapi/cpp/rect.h" |
| 19 #include "ppapi/cpp/size.h" | 18 #include "ppapi/cpp/size.h" |
| 19 #include "ppapi/utility/completion_callback_factory.h" |
| 20 | 20 |
| 21 class MyInstance : public pp::Instance { | 21 class MyInstance : public pp::Instance { |
| 22 public: | 22 public: |
| 23 explicit MyInstance(PP_Instance instance) | 23 explicit MyInstance(PP_Instance instance) |
| 24 : pp::Instance(instance), | 24 : pp::Instance(instance), |
| 25 callback_factory_(this), | 25 callback_factory_(this), |
| 26 sample_count_(0), | 26 sample_count_(0), |
| 27 channel_count_(0), | 27 channel_count_(0), |
| 28 samples_(NULL), | 28 samples_(NULL), |
| 29 timer_interval_(0), | 29 timer_interval_(0), |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 namespace pp { | 187 namespace pp { |
| 188 | 188 |
| 189 // Factory function for your specialization of the Module object. | 189 // Factory function for your specialization of the Module object. |
| 190 Module* CreateModule() { | 190 Module* CreateModule() { |
| 191 return new MyModule(); | 191 return new MyModule(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 } // namespace pp | 194 } // namespace pp |
| OLD | NEW |