| 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 | 4 |
| 5 #ifndef COMPONENTS_DRIVE_DRIVE_API_UTIL_H_ | 5 #ifndef COMPONENTS_DRIVE_DRIVE_API_UTIL_H_ |
| 6 #define COMPONENTS_DRIVE_DRIVE_API_UTIL_H_ | 6 #define COMPONENTS_DRIVE_DRIVE_API_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/md5.h" | 11 #include "base/md5.h" |
| 12 #include "google_apis/drive/drive_api_error_codes.h" | 12 #include "google_apis/drive/drive_api_error_codes.h" |
| 13 #include "google_apis/drive/drive_common_callbacks.h" | 13 #include "google_apis/drive/drive_common_callbacks.h" |
| 14 | 14 |
| 15 class GURL; | |
| 16 | |
| 17 namespace base { | 15 namespace base { |
| 18 class CancellationFlag; | 16 class CancellationFlag; |
| 19 class FilePath; | 17 class FilePath; |
| 20 class Value; | |
| 21 } // namespace base | 18 } // namespace base |
| 22 | 19 |
| 23 namespace google_apis { | |
| 24 class ChangeList; | |
| 25 class ChangeResource; | |
| 26 class FileList; | |
| 27 class FileResource; | |
| 28 class ResourceEntry; | |
| 29 } // namespace google_apis | |
| 30 | |
| 31 namespace drive { | 20 namespace drive { |
| 32 namespace util { | 21 namespace util { |
| 33 | 22 |
| 34 // Google Apps MIME types: | 23 // Google Apps MIME types: |
| 35 const char kGoogleDocumentMimeType[] = "application/vnd.google-apps.document"; | 24 const char kGoogleDocumentMimeType[] = "application/vnd.google-apps.document"; |
| 36 const char kGoogleDrawingMimeType[] = "application/vnd.google-apps.drawing"; | 25 const char kGoogleDrawingMimeType[] = "application/vnd.google-apps.drawing"; |
| 37 const char kGooglePresentationMimeType[] = | 26 const char kGooglePresentationMimeType[] = |
| 38 "application/vnd.google-apps.presentation"; | 27 "application/vnd.google-apps.presentation"; |
| 39 const char kGoogleSpreadsheetMimeType[] = | 28 const char kGoogleSpreadsheetMimeType[] = |
| 40 "application/vnd.google-apps.spreadsheet"; | 29 "application/vnd.google-apps.spreadsheet"; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool IsKnownHostedDocumentMimeType(const std::string& mime_type); | 66 bool IsKnownHostedDocumentMimeType(const std::string& mime_type); |
| 78 | 67 |
| 79 // Returns true if the given file path has an extension corresponding to one of | 68 // Returns true if the given file path has an extension corresponding to one of |
| 80 // hosted document types. | 69 // hosted document types. |
| 81 bool HasHostedDocumentExtension(const base::FilePath& path); | 70 bool HasHostedDocumentExtension(const base::FilePath& path); |
| 82 | 71 |
| 83 } // namespace util | 72 } // namespace util |
| 84 } // namespace drive | 73 } // namespace drive |
| 85 | 74 |
| 86 #endif // COMPONENTS_DRIVE_DRIVE_API_UTIL_H_ | 75 #endif // COMPONENTS_DRIVE_DRIVE_API_UTIL_H_ |
| OLD | NEW |