| 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 "webkit/glue/media/web_data_source_factory.h" | 5 #include "webkit/media/web_data_source_factory.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "media/base/media_log.h" | 9 #include "media/base/media_log.h" |
| 10 | 10 |
| 11 namespace webkit_glue { | 11 namespace webkit_media { |
| 12 | 12 |
| 13 class WebDataSourceFactory::BuildRequest | 13 class WebDataSourceFactory::BuildRequest |
| 14 : public media::AsyncDataSourceFactoryBase::BuildRequest { | 14 : public media::AsyncDataSourceFactoryBase::BuildRequest { |
| 15 public: | 15 public: |
| 16 BuildRequest(const std::string& url, const BuildCallback& callback, | 16 BuildRequest(const std::string& url, const BuildCallback& callback, |
| 17 WebDataSource* data_source, | 17 WebDataSource* data_source, |
| 18 const WebDataSourceBuildObserverHack& build_observer); | 18 const WebDataSourceBuildObserverHack& build_observer); |
| 19 virtual ~BuildRequest(); | 19 virtual ~BuildRequest(); |
| 20 | 20 |
| 21 protected: | 21 protected: |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 if (!build_observer_.is_null() && data_source.get()) { | 101 if (!build_observer_.is_null() && data_source.get()) { |
| 102 build_observer_.Run(data_source.get()); | 102 build_observer_.Run(data_source.get()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 RequestComplete(status, data_source); | 105 RequestComplete(status, data_source); |
| 106 // Don't do anything after this line. This object is deleted by | 106 // Don't do anything after this line. This object is deleted by |
| 107 // RequestComplete(). | 107 // RequestComplete(). |
| 108 } | 108 } |
| 109 | 109 |
| 110 } // namespace webkit_glue | 110 } // namespace webkit_media |
| OLD | NEW |