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_list.h" | 5 #include "webkit/plugins/npapi/plugin_list.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_split.h" | 12 #include "base/string_split.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "net/base/mime_util.h" | 17 #include "net/base/mime_util.h" |
18 #include "webkit/glue/webkit_glue.h" | 18 #include "webkit/glue/webkit_glue.h" |
19 #include "webkit/plugins/npapi/plugin_constants_win.h" | 19 #include "webkit/plugins/npapi/plugin_constants_win.h" |
20 #include "webkit/plugins/npapi/plugin_lib.h" | 20 #include "webkit/plugins/npapi/plugin_lib.h" |
21 #include "webkit/plugins/plugin_switches.h" | 21 #include "webkit/plugins/plugin_switches.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 static const char kApplicationOctetStream[] = "application/octet-stream"; | 25 const char kApplicationOctetStream[] = "application/octet-stream"; |
26 | 26 |
27 base::LazyInstance<webkit::npapi::PluginList> g_singleton = | 27 base::LazyInstance<webkit::npapi::PluginList> g_singleton = |
28 LAZY_INSTANCE_INITIALIZER; | 28 LAZY_INSTANCE_INITIALIZER; |
29 | 29 |
30 bool AllowMimeTypeMismatch(const std::string& orig_mime_type, | 30 bool AllowMimeTypeMismatch(const std::string& orig_mime_type, |
31 const std::string& actual_mime_type) { | 31 const std::string& actual_mime_type) { |
32 if (orig_mime_type == actual_mime_type) { | 32 if (orig_mime_type == actual_mime_type) { |
33 NOTREACHED(); | 33 NOTREACHED(); |
34 return true; | 34 return true; |
35 } | 35 } |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 } | 696 } |
697 return false; | 697 return false; |
698 } | 698 } |
699 | 699 |
700 PluginList::~PluginList() { | 700 PluginList::~PluginList() { |
701 } | 701 } |
702 | 702 |
703 | 703 |
704 } // namespace npapi | 704 } // namespace npapi |
705 } // namespace webkit | 705 } // namespace webkit |
OLD | NEW |