Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ |
| 6 #define CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ | 6 #define CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 // Drive document icon URLs for this app, paired with their size (length of | 45 // Drive document icon URLs for this app, paired with their size (length of |
| 46 // a side in pixels). | 46 // a side in pixels). |
| 47 google_apis::InstalledApp::IconList document_icons; | 47 google_apis::InstalledApp::IconList document_icons; |
| 48 // App name. | 48 // App name. |
| 49 std::string app_name; | 49 std::string app_name; |
| 50 // URL for opening a new file in the app. Empty if the app does not support | 50 // URL for opening a new file in the app. Empty if the app does not support |
| 51 // new file creation. | 51 // new file creation. |
| 52 GURL create_url; | 52 GURL create_url; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 // Callback type for UninstallApp(). | 55 // Callback type for UninstallApp(). Returns HTTP_NO_CONTENT on success. |
|
hashimoto
2014/01/16 04:37:25
nit: I guess UninstallApp's function comment shoul
kinaba
2014/01/16 04:47:35
Done.
| |
| 56 typedef base::Callback<void(google_apis::GDataErrorCode)> UninstallCallback; | 56 typedef base::Callback<void(google_apis::GDataErrorCode)> UninstallCallback; |
| 57 | 57 |
| 58 // Keeps the track of installed drive applications in-memory. | 58 // Keeps the track of installed drive applications in-memory. |
| 59 class DriveAppRegistry { | 59 class DriveAppRegistry { |
| 60 public: | 60 public: |
| 61 explicit DriveAppRegistry(DriveServiceInterface* scheduler); | 61 explicit DriveAppRegistry(DriveServiceInterface* scheduler); |
| 62 ~DriveAppRegistry(); | 62 ~DriveAppRegistry(); |
| 63 | 63 |
| 64 // Returns a list of Drive app information for the |file_extension| with | 64 // Returns a list of Drive app information for the |file_extension| with |
| 65 // |mime_type|. | 65 // |mime_type|. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 // Icons do not have to be sorted by the icon size. If there are no icons in | 127 // Icons do not have to be sorted by the icon size. If there are no icons in |
| 128 // the list, returns an empty URL. | 128 // the list, returns an empty URL. |
| 129 GURL FindPreferredIcon(const google_apis::InstalledApp::IconList& icons, | 129 GURL FindPreferredIcon(const google_apis::InstalledApp::IconList& icons, |
| 130 int preferred_size); | 130 int preferred_size); |
| 131 | 131 |
| 132 } // namespace util | 132 } // namespace util |
| 133 | 133 |
| 134 } // namespace drive | 134 } // namespace drive |
| 135 | 135 |
| 136 #endif // CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ | 136 #endif // CHROME_BROWSER_DRIVE_DRIVE_APP_REGISTRY_H_ |
| OLD | NEW |