| 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 "content/child/npapi/plugin_stream.h" | 5 #include "content/child/npapi/plugin_stream.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/file_util.h" | |
| 10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "content/child/npapi/plugin_instance.h" | 12 #include "content/child/npapi/plugin_instance.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 void PluginStream::ResetTempFileHandle() { | 16 void PluginStream::ResetTempFileHandle() { |
| 17 temp_file_ = NULL; | 17 temp_file_ = NULL; |
| 18 } | 18 } |
| 19 | 19 |
| 20 void PluginStream::ResetTempFileName() { | 20 void PluginStream::ResetTempFileName() { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 base::CloseFile(temp_file_); | 51 base::CloseFile(temp_file_); |
| 52 ResetTempFileHandle(); | 52 ResetTempFileHandle(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool PluginStream::TempFileIsValid() const { | 55 bool PluginStream::TempFileIsValid() const { |
| 56 return temp_file_ != NULL; | 56 return temp_file_ != NULL; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace content | 59 } // namespace content |
| OLD | NEW |