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

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: once more new test_expectations.txt 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
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chrome/tools/build/win/FILES » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
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
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
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chrome/tools/build/win/FILES » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698