| 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_chromeos.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 13 #include "base/string_split.h" | 13 #include "base/string_split.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 scoped_refptr<RefCountedStaticMemory> bytes(rb.LoadDataResourceBytes(idr)); | 247 scoped_refptr<RefCountedStaticMemory> bytes(rb.LoadDataResourceBytes(idr)); |
| 248 SendResponse(request_id, bytes); | 248 SendResponse(request_id, bytes); |
| 249 } | 249 } |
| 250 | 250 |
| 251 // The mime type refers to the type of the response/icon served. | 251 // The mime type refers to the type of the response/icon served. |
| 252 std::string FileIconSourceCros::GetMimeType( | 252 std::string FileIconSourceCros::GetMimeType( |
| 253 const std::string& url) const { | 253 const std::string& url) const { |
| 254 return "image/png"; | 254 return "image/png"; |
| 255 } | 255 } |
| 256 | 256 |
| OLD | NEW |