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