Lines Matching refs:MyInstance
28 class MyInstance : public pp::Instance {
30 explicit MyInstance(PP_Instance instance)
34 virtual ~MyInstance() {
62 pp::CompletionCallbackFactory<MyInstance> factory_;
75 void MyInstance::HandleMessage(const pp::Var& message_data) {
80 void MyInstance::StartRequest(const std::string& url) {
89 factory_.NewCallback(&MyInstance::OnOpenComplete));
92 void MyInstance::OnOpenComplete(int32_t result) {
107 void MyInstance::ReadMore() {
115 factory_.NewOptionalCallback(&MyInstance::OnReadComplete);
137 void MyInstance::OnReadComplete(int32_t result) {
152 void MyInstance::ReportResponse(const std::string& data) {
165 return new MyInstance(instance);