| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/renderer/pepper/pepper_video_source_host.h" | 5 #include "content/renderer/pepper/pepper_video_source_host.h" |
| 6 | 6 |
| 7 #include <string.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/numerics/safe_conversions.h" | 10 #include "base/numerics/safe_conversions.h" |
| 9 #include "content/public/renderer/renderer_ppapi_host.h" | 11 #include "content/public/renderer/renderer_ppapi_host.h" |
| 10 #include "content/renderer/media/video_track_to_pepper_adapter.h" | 12 #include "content/renderer/media/video_track_to_pepper_adapter.h" |
| 11 #include "content/renderer/pepper/ppb_image_data_impl.h" | 13 #include "content/renderer/pepper/ppb_image_data_impl.h" |
| 12 #include "content/renderer/render_thread_impl.h" | 14 #include "content/renderer/render_thread_impl.h" |
| 13 #include "ppapi/c/pp_errors.h" | 15 #include "ppapi/c/pp_errors.h" |
| 14 #include "ppapi/host/dispatch_host_message.h" | 16 #include "ppapi/host/dispatch_host_message.h" |
| 15 #include "ppapi/host/ppapi_host.h" | 17 #include "ppapi/host/ppapi_host.h" |
| 16 #include "ppapi/proxy/host_dispatcher.h" | 18 #include "ppapi/proxy/host_dispatcher.h" |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 if (frame_source_.get() && !stream_url_.empty()) | 302 if (frame_source_.get() && !stream_url_.empty()) |
| 301 frame_source_->Close(frame_receiver_.get()); | 303 frame_source_->Close(frame_receiver_.get()); |
| 302 | 304 |
| 303 frame_source_.reset(NULL); | 305 frame_source_.reset(NULL); |
| 304 stream_url_.clear(); | 306 stream_url_.clear(); |
| 305 | 307 |
| 306 shared_image_ = NULL; | 308 shared_image_ = NULL; |
| 307 } | 309 } |
| 308 | 310 |
| 309 } // namespace content | 311 } // namespace content |
| OLD | NEW |