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 // TODO : Support NP_ASFILEONLY mode | 5 // TODO : Support NP_ASFILEONLY mode |
6 // TODO : Support NP_SEEK mode | 6 // TODO : Support NP_SEEK mode |
7 // TODO : Support SEEKABLE=true in NewStream | 7 // TODO : Support SEEKABLE=true in NewStream |
8 | 8 |
9 #include "webkit/plugins/npapi/plugin_stream.h" | 9 #include "webkit/plugins/npapi/plugin_stream.h" |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "googleurl/src/gurl.h" |
17 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
18 #include "webkit/plugins/npapi/plugin_instance.h" | 19 #include "webkit/plugins/npapi/plugin_instance.h" |
19 #include "googleurl/src/gurl.h" | |
20 | 20 |
21 namespace webkit { | 21 namespace webkit { |
22 namespace npapi { | 22 namespace npapi { |
23 | 23 |
24 PluginStream::PluginStream( | 24 PluginStream::PluginStream( |
25 PluginInstance* instance, | 25 PluginInstance* instance, |
26 const char* url, | 26 const char* url, |
27 bool need_notify, | 27 bool need_notify, |
28 void* notify_data) | 28 void* notify_data) |
29 : instance_(instance), | 29 : instance_(instance), |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 280 } |
281 } | 281 } |
282 | 282 |
283 bool PluginStream::RequestedPluginModeIsAsFile() const { | 283 bool PluginStream::RequestedPluginModeIsAsFile() const { |
284 return (requested_plugin_mode_ == NP_ASFILE || | 284 return (requested_plugin_mode_ == NP_ASFILE || |
285 requested_plugin_mode_ == NP_ASFILEONLY); | 285 requested_plugin_mode_ == NP_ASFILEONLY); |
286 } | 286 } |
287 | 287 |
288 } // namespace npapi | 288 } // namespace npapi |
289 } // namespace webkit | 289 } // namespace webkit |
OLD | NEW |