OLD | NEW |
1 // Copyright (c) 2006-2008 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/glue/plugins/plugin_stream.h" | 5 #include "webkit/plugins/npapi/plugin_stream.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "webkit/glue/plugins/plugin_instance.h" | 12 #include "webkit/plugins/npapi/plugin_instance.h" |
13 | 13 |
14 namespace NPAPI { | 14 namespace webkit { |
| 15 namespace npapi { |
15 | 16 |
16 PluginStream::PluginStream( | 17 PluginStream::PluginStream( |
17 PluginInstance *instance, | 18 PluginInstance *instance, |
18 const char *url, | 19 const char *url, |
19 bool need_notify, | 20 bool need_notify, |
20 void *notify_data) | 21 void *notify_data) |
21 : instance_(instance), | 22 : instance_(instance), |
22 notify_needed_(need_notify), | 23 notify_needed_(need_notify), |
23 notify_data_(notify_data), | 24 notify_data_(notify_data), |
24 close_on_write_data_(false), | 25 close_on_write_data_(false), |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 65 |
65 void PluginStream::CloseTempFile() { | 66 void PluginStream::CloseTempFile() { |
66 file_util::CloseFile(temp_file_); | 67 file_util::CloseFile(temp_file_); |
67 temp_file_ = NULL; | 68 temp_file_ = NULL; |
68 } | 69 } |
69 | 70 |
70 bool PluginStream::TempFileIsValid() { | 71 bool PluginStream::TempFileIsValid() { |
71 return temp_file_ != NULL; | 72 return temp_file_ != NULL; |
72 } | 73 } |
73 | 74 |
74 } // namespace NPAPI | 75 } // namespace npapi |
| 76 } // namespace webkit |
OLD | NEW |