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