| 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 #include "chrome/browser/chromeos/extensions/file_manager_util.h" | 4 #include "chrome/browser/chromeos/extensions/file_manager_util.h" |
| 5 | 5 |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 #endif | 98 #endif |
| 99 ".flac", ".ogm", ".ogg", ".oga", ".wav", | 99 ".flac", ".ogm", ".ogg", ".oga", ".wav", |
| 100 /* TODO(zelidrag): Add unsupported ones as we enable them: | 100 /* TODO(zelidrag): Add unsupported ones as we enable them: |
| 101 ".mkv", ".divx", ".xvid", ".wmv", ".asf", ".mpeg", ".mpg", | 101 ".mkv", ".divx", ".xvid", ".wmv", ".asf", ".mpeg", ".mpg", |
| 102 ".wma", ".aiff", | 102 ".wma", ".aiff", |
| 103 */ | 103 */ |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 // Keep in sync with 'open-hosted' task handler in the File Browser manifest. | 106 // Keep in sync with 'open-hosted' task handler in the File Browser manifest. |
| 107 const char* kGDocsExtensions[] = { | 107 const char* kGDocsExtensions[] = { |
| 108 ".gdoc", ".gsheet", ".gslides", ".gdraw", ".gtable" | 108 ".gdoc", ".gsheet", ".gslides", ".gdraw", ".gtable", ".glink" |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // List of all extensions we want to be shown in histogram that keep track of | 111 // List of all extensions we want to be shown in histogram that keep track of |
| 112 // files that were unsuccessfully tried to be opened. | 112 // files that were unsuccessfully tried to be opened. |
| 113 // The list has to be synced with histogram values. | 113 // The list has to be synced with histogram values. |
| 114 const char* kUMATrackingExtensions[] = { | 114 const char* kUMATrackingExtensions[] = { |
| 115 "other", ".doc", ".docx", ".odt", ".rtf", ".pdf", ".ppt", ".pptx", ".odp", | 115 "other", ".doc", ".docx", ".odt", ".rtf", ".pdf", ".ppt", ".pptx", ".odp", |
| 116 ".xls", ".xlsx", ".ods", ".csv", ".odf", ".rar", ".asf", ".wma", ".wmv", | 116 ".xls", ".xlsx", ".ods", ".csv", ".odf", ".rar", ".asf", ".wma", ".wmv", |
| 117 ".mov", ".mpg", ".log" | 117 ".mov", ".mpg", ".log" |
| 118 }; | 118 }; |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 GDataOperationRegistry::ProgressStatus>::const_iterator iter = | 726 GDataOperationRegistry::ProgressStatus>::const_iterator iter = |
| 727 list.begin(); | 727 list.begin(); |
| 728 iter != list.end(); ++iter) { | 728 iter != list.end(); ++iter) { |
| 729 result_list->Append( | 729 result_list->Append( |
| 730 ProgessStatusToDictionaryValue(profile, origin_url, *iter)); | 730 ProgessStatusToDictionaryValue(profile, origin_url, *iter)); |
| 731 } | 731 } |
| 732 return result_list.release(); | 732 return result_list.release(); |
| 733 } | 733 } |
| 734 | 734 |
| 735 } // namespace file_manager_util | 735 } // namespace file_manager_util |
| OLD | NEW |