OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/child/npapi/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 "content/child/npapi/plugin_instance.h" |
9 | 9 |
10 namespace webkit { | 10 namespace content { |
11 namespace npapi { | |
12 | 11 |
13 void PluginStream::ResetTempFileHandle() { | 12 void PluginStream::ResetTempFileHandle() { |
14 temp_file_handle_ = INVALID_HANDLE_VALUE; | 13 temp_file_handle_ = INVALID_HANDLE_VALUE; |
15 } | 14 } |
16 | 15 |
17 void PluginStream::ResetTempFileName() { | 16 void PluginStream::ResetTempFileName() { |
18 temp_file_name_[0] = '\0'; | 17 temp_file_name_[0] = '\0'; |
19 } | 18 } |
20 | 19 |
21 void PluginStream::WriteAsFile() { | 20 void PluginStream::WriteAsFile() { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 return; | 69 return; |
71 | 70 |
72 CloseHandle(temp_file_handle_); | 71 CloseHandle(temp_file_handle_); |
73 ResetTempFileHandle(); | 72 ResetTempFileHandle(); |
74 } | 73 } |
75 | 74 |
76 bool PluginStream::TempFileIsValid() const { | 75 bool PluginStream::TempFileIsValid() const { |
77 return temp_file_handle_ != INVALID_HANDLE_VALUE; | 76 return temp_file_handle_ != INVALID_HANDLE_VALUE; |
78 } | 77 } |
79 | 78 |
80 } // namespace npapi | 79 } // namespace content |
81 } // namespace webkit | |
OLD | NEW |