| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 "webkit/glue/plugins/plugin_stream.h" | 5 #include "webkit/plugins/npapi/plugin_stream.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "webkit/glue/plugins/plugin_instance.h" | 8 #include "webkit/plugins/npapi/plugin_instance.h" |
| 9 | 9 |
| 10 namespace NPAPI { | 10 namespace webkit { |
| 11 namespace npapi { |
| 11 | 12 |
| 12 PluginStream::PluginStream( | 13 PluginStream::PluginStream( |
| 13 PluginInstance *instance, | 14 PluginInstance *instance, |
| 14 const char *url, | 15 const char *url, |
| 15 bool need_notify, | 16 bool need_notify, |
| 16 void *notify_data) | 17 void *notify_data) |
| 17 : instance_(instance), | 18 : instance_(instance), |
| 18 notify_needed_(need_notify), | 19 notify_needed_(need_notify), |
| 19 notify_data_(notify_data), | 20 notify_data_(notify_data), |
| 20 close_on_write_data_(false), | 21 close_on_write_data_(false), |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 if (temp_file_handle_ != INVALID_HANDLE_VALUE) { | 88 if (temp_file_handle_ != INVALID_HANDLE_VALUE) { |
| 88 CloseHandle(temp_file_handle_); | 89 CloseHandle(temp_file_handle_); |
| 89 temp_file_handle_ = INVALID_HANDLE_VALUE; | 90 temp_file_handle_ = INVALID_HANDLE_VALUE; |
| 90 } | 91 } |
| 91 } | 92 } |
| 92 | 93 |
| 93 bool PluginStream::TempFileIsValid() { | 94 bool PluginStream::TempFileIsValid() { |
| 94 return temp_file_handle_ != INVALID_HANDLE_VALUE; | 95 return temp_file_handle_ != INVALID_HANDLE_VALUE; |
| 95 } | 96 } |
| 96 | 97 |
| 97 } // namespace NPAPI | 98 } // namespace npapi |
| 99 } // namespace webkit |
| OLD | NEW |