| 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_UI_APP_LIST_DRIVE_DRIVE_APP_CONVERTER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_APP_CONVERTER_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_APP_CONVERTER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_APP_CONVERTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 typedef base::Callback<void(const DriveAppConverter*, bool success)> | 29 typedef base::Callback<void(const DriveAppConverter*, bool success)> |
| 30 FinishedCallback; | 30 FinishedCallback; |
| 31 | 31 |
| 32 DriveAppConverter(Profile* profile, | 32 DriveAppConverter(Profile* profile, |
| 33 const drive::DriveAppInfo& app_info, | 33 const drive::DriveAppInfo& app_info, |
| 34 const FinishedCallback& finished_callback); | 34 const FinishedCallback& finished_callback); |
| 35 virtual ~DriveAppConverter(); | 35 virtual ~DriveAppConverter(); |
| 36 | 36 |
| 37 void Start(); | 37 void Start(); |
| 38 bool IsStarted() const; |
| 38 | 39 |
| 39 const drive::DriveAppInfo& app_info() const { return app_info_; } | 40 const drive::DriveAppInfo& app_info() const { return app_info_; } |
| 40 const extensions::Extension* app() const { return app_; } | 41 const extensions::Extension* app() const { return app_; } |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 class IconFetcher; | 44 class IconFetcher; |
| 44 | 45 |
| 45 // Callbacks from IconFetcher. | 46 // Callbacks from IconFetcher. |
| 46 void OnIconFetchComplete(const IconFetcher* fetcher); | 47 void OnIconFetchComplete(const IconFetcher* fetcher); |
| 47 | 48 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 60 | 61 |
| 61 ScopedVector<IconFetcher> fetchers_; | 62 ScopedVector<IconFetcher> fetchers_; |
| 62 scoped_refptr<extensions::CrxInstaller> crx_installer_; | 63 scoped_refptr<extensions::CrxInstaller> crx_installer_; |
| 63 | 64 |
| 64 FinishedCallback finished_callback_; | 65 FinishedCallback finished_callback_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(DriveAppConverter); | 67 DISALLOW_COPY_AND_ASSIGN(DriveAppConverter); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 #endif // CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_APP_CONVERTER_H_ | 70 #endif // CHROME_BROWSER_UI_APP_LIST_DRIVE_DRIVE_APP_CONVERTER_H_ |
| OLD | NEW |