OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_list.h" | 5 #include "webkit/glue/plugins/plugin_list.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/mac_util.h" | 10 #include "base/mac_util.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // encounter earlier must override plugins we encounter later) | 92 // encounter earlier must override plugins we encounter later) |
93 for (size_t i = 0; i < plugins->size(); ++i) { | 93 for (size_t i = 0; i < plugins->size(); ++i) { |
94 if ((*plugins)[i].path.BaseName() == info.path.BaseName()) { | 94 if ((*plugins)[i].path.BaseName() == info.path.BaseName()) { |
95 return false; // We already have a loaded plugin higher in the hierarchy. | 95 return false; // We already have a loaded plugin higher in the hierarchy. |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 return true; | 99 return true; |
100 } | 100 } |
101 | 101 |
102 void PluginList::LoadInternalPlugins(std::vector<WebPluginInfo>* plugins) { | |
103 // none for now | |
104 } | |
105 | |
106 } // namespace NPAPI | 102 } // namespace NPAPI |
OLD | NEW |