OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/webui/fileicon_source_cros.h" | 5 #include "chrome/browser/ui/webui/fileicon_source_cros.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 std::make_pair(".ico", kImageIdrs), | 126 std::make_pair(".ico", kImageIdrs), |
127 std::make_pair(".jpeg", kImageIdrs), | 127 std::make_pair(".jpeg", kImageIdrs), |
128 std::make_pair(".jpg", kImageIdrs), | 128 std::make_pair(".jpg", kImageIdrs), |
129 std::make_pair(".png", kImageIdrs), | 129 std::make_pair(".png", kImageIdrs), |
130 std::make_pair(".webp", kImageIdrs), | 130 std::make_pair(".webp", kImageIdrs), |
131 std::make_pair(".pdf", kPdfIdrs), | 131 std::make_pair(".pdf", kPdfIdrs), |
132 std::make_pair(".log", kTextIdrs), | 132 std::make_pair(".log", kTextIdrs), |
133 std::make_pair(".pod", kTextIdrs), | 133 std::make_pair(".pod", kTextIdrs), |
134 std::make_pair(".rst", kTextIdrs), | 134 std::make_pair(".rst", kTextIdrs), |
135 std::make_pair(".txt", kTextIdrs), | 135 std::make_pair(".txt", kTextIdrs), |
| 136 std::make_pair(".avi", kVideoIdrs), |
136 std::make_pair(".m4v", kVideoIdrs), | 137 std::make_pair(".m4v", kVideoIdrs), |
137 std::make_pair(".mov", kVideoIdrs), | 138 std::make_pair(".mov", kVideoIdrs), |
138 std::make_pair(".mp4", kVideoIdrs), | 139 std::make_pair(".mp4", kVideoIdrs), |
139 std::make_pair(".mpeg", kVideoIdrs), | 140 std::make_pair(".mpeg", kVideoIdrs), |
140 std::make_pair(".mpg", kVideoIdrs), | 141 std::make_pair(".mpg", kVideoIdrs), |
141 std::make_pair(".mpeg4", kVideoIdrs), | 142 std::make_pair(".mpeg4", kVideoIdrs), |
142 std::make_pair(".mpg4", kVideoIdrs), | 143 std::make_pair(".mpg4", kVideoIdrs), |
143 std::make_pair(".ogm", kVideoIdrs), | 144 std::make_pair(".ogm", kVideoIdrs), |
144 std::make_pair(".ogv", kVideoIdrs), | 145 std::make_pair(".ogv", kVideoIdrs), |
145 std::make_pair(".ogx", kVideoIdrs), | 146 std::make_pair(".ogx", kVideoIdrs), |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 scoped_refptr<RefCountedStaticMemory> bytes(rb.LoadDataResourceBytes(idr)); | 233 scoped_refptr<RefCountedStaticMemory> bytes(rb.LoadDataResourceBytes(idr)); |
233 SendResponse(request_id, bytes); | 234 SendResponse(request_id, bytes); |
234 } | 235 } |
235 | 236 |
236 // The mime type refers to the type of the response/icon served. | 237 // The mime type refers to the type of the response/icon served. |
237 std::string FileIconSourceCros::GetMimeType( | 238 std::string FileIconSourceCros::GetMimeType( |
238 const std::string& url) const { | 239 const std::string& url) const { |
239 return "image/png"; | 240 return "image/png"; |
240 } | 241 } |
241 | 242 |
OLD | NEW |