Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/browser/ui/webui/fileicon_source_cros.cc

Issue 6993042: ffmpeg chromium glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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),
137 std::make_pair(".divx", kVideoIdrs),
136 std::make_pair(".m4v", kVideoIdrs), 138 std::make_pair(".m4v", kVideoIdrs),
137 std::make_pair(".mov", kVideoIdrs), 139 std::make_pair(".mov", kVideoIdrs),
138 std::make_pair(".mp4", kVideoIdrs), 140 std::make_pair(".mp4", kVideoIdrs),
139 std::make_pair(".mpeg", kVideoIdrs), 141 std::make_pair(".mpeg", kVideoIdrs),
140 std::make_pair(".mpg", kVideoIdrs), 142 std::make_pair(".mpg", kVideoIdrs),
141 std::make_pair(".mpeg4", kVideoIdrs), 143 std::make_pair(".mpeg4", kVideoIdrs),
142 std::make_pair(".mpg4", kVideoIdrs), 144 std::make_pair(".mpg4", kVideoIdrs),
143 std::make_pair(".ogm", kVideoIdrs), 145 std::make_pair(".ogm", kVideoIdrs),
144 std::make_pair(".ogv", kVideoIdrs), 146 std::make_pair(".ogv", kVideoIdrs),
145 std::make_pair(".ogx", kVideoIdrs), 147 std::make_pair(".ogx", kVideoIdrs),
146 std::make_pair(".webm", kVideoIdrs), 148 std::make_pair(".webm", kVideoIdrs),
149 std::make_pair(".xvid", kVideoIdrs),
scherkus (not reviewing) 2011/06/29 17:00:36 ditto
ilja 2011/06/29 21:40:05 Zel again?
147 }; 150 };
148 151
149 const size_t kQSize = arraysize(kQueryIconSizeData); 152 const size_t kQSize = arraysize(kQueryIconSizeData);
150 153
151 const QueryIconSizeMap kQueryIconSizeMap(&kQueryIconSizeData[0], 154 const QueryIconSizeMap kQueryIconSizeMap(&kQueryIconSizeData[0],
152 &kQueryIconSizeData[kQSize]); 155 &kQueryIconSizeData[kQSize]);
153 156
154 const size_t kESize = arraysize(kExtensionIdrBySizeData); 157 const size_t kESize = arraysize(kExtensionIdrBySizeData);
155 158
156 const ExtensionIconSizeMap kExtensionIdrSizeMap( 159 const ExtensionIconSizeMap kExtensionIdrSizeMap(
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 scoped_refptr<RefCountedStaticMemory> bytes(rb.LoadDataResourceBytes(idr)); 235 scoped_refptr<RefCountedStaticMemory> bytes(rb.LoadDataResourceBytes(idr));
233 SendResponse(request_id, bytes); 236 SendResponse(request_id, bytes);
234 } 237 }
235 238
236 // The mime type refers to the type of the response/icon served. 239 // The mime type refers to the type of the response/icon served.
237 std::string FileIconSourceCros::GetMimeType( 240 std::string FileIconSourceCros::GetMimeType(
238 const std::string& url) const { 241 const std::string& url) const {
239 return "image/png"; 242 return "image/png";
240 } 243 }
241 244
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698