| 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_APPS_DRIVE_DRIVE_APP_CONVERTER_H_ | 5 #ifndef CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_CONVERTER_H_ |
| 6 #define CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_CONVERTER_H_ | 6 #define CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_CONVERTER_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 11 #include "base/macros.h" | 13 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_vector.h" | |
| 14 #include "chrome/browser/extensions/install_observer.h" | 15 #include "chrome/browser/extensions/install_observer.h" |
| 15 #include "chrome/common/web_application_info.h" | 16 #include "chrome/common/web_application_info.h" |
| 16 #include "components/drive/drive_app_registry.h" | 17 #include "components/drive/drive_app_registry.h" |
| 17 | 18 |
| 18 class Profile; | 19 class Profile; |
| 19 | 20 |
| 20 namespace extensions { | 21 namespace extensions { |
| 21 class CrxInstaller; | 22 class CrxInstaller; |
| 22 class Extension; | 23 class Extension; |
| 23 } | 24 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void OnFinishCrxInstall(const std::string& extension_id, | 57 void OnFinishCrxInstall(const std::string& extension_id, |
| 57 bool success) override; | 58 bool success) override; |
| 58 | 59 |
| 59 Profile* profile_; | 60 Profile* profile_; |
| 60 const drive::DriveAppInfo drive_app_info_; | 61 const drive::DriveAppInfo drive_app_info_; |
| 61 | 62 |
| 62 WebApplicationInfo web_app_; | 63 WebApplicationInfo web_app_; |
| 63 const extensions::Extension* extension_; | 64 const extensions::Extension* extension_; |
| 64 bool is_new_install_; | 65 bool is_new_install_; |
| 65 | 66 |
| 66 ScopedVector<IconFetcher> fetchers_; | 67 std::vector<std::unique_ptr<IconFetcher>> fetchers_; |
| 67 scoped_refptr<extensions::CrxInstaller> crx_installer_; | 68 scoped_refptr<extensions::CrxInstaller> crx_installer_; |
| 68 | 69 |
| 69 FinishedCallback finished_callback_; | 70 FinishedCallback finished_callback_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(DriveAppConverter); | 72 DISALLOW_COPY_AND_ASSIGN(DriveAppConverter); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_CONVERTER_H_ | 75 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_CONVERTER_H_ |
| OLD | NEW |