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/support/test_shell_webmimeregistry_impl.h" | 5 #include "webkit/support/test_shell_webmimeregistry_impl.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "net/base/mime_util.h" | 9 #include "net/base/mime_util.h" |
10 #include "third_party/WebKit/public/platform/WebString.h" | 10 #include "third_party/WebKit/public/platform/WebString.h" |
11 | 11 |
12 using WebKit::WebString; | 12 using WebKit::WebString; |
13 using WebKit::WebMimeRegistry; | 13 using WebKit::WebMimeRegistry; |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // Convert a WebString to ASCII, falling back on an empty string in the case | 17 // Convert a WebString to ASCII, falling back on an empty string in the case |
18 // of a non-ASCII string. | 18 // of a non-ASCII string. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool TestShellWebMimeRegistryImpl::HasBlacklistedMediaCodecs( | 61 bool TestShellWebMimeRegistryImpl::HasBlacklistedMediaCodecs( |
62 const std::vector<std::string>& codecs) { | 62 const std::vector<std::string>& codecs) { |
63 for (size_t i = 0; i < codecs.size(); ++i) { | 63 for (size_t i = 0; i < codecs.size(); ++i) { |
64 for (size_t j = 0; j < blacklisted_media_codecs_.size(); ++j) { | 64 for (size_t j = 0; j < blacklisted_media_codecs_.size(); ++j) { |
65 if (blacklisted_media_codecs_[j] == codecs[i]) | 65 if (blacklisted_media_codecs_[j] == codecs[i]) |
66 return true; | 66 return true; |
67 } | 67 } |
68 } | 68 } |
69 return false; | 69 return false; |
70 } | 70 } |
OLD | NEW |