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