| 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_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ | 6 #define CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 void SchedulePendingConverters(); | 63 void SchedulePendingConverters(); |
| 64 void OnLocalAppConverted(const DriveAppConverter* converter, bool success); | 64 void OnLocalAppConverted(const DriveAppConverter* converter, bool success); |
| 65 | 65 |
| 66 bool IsMappedUrlAppUpToDate(const drive::DriveAppInfo& drive_app) const; | 66 bool IsMappedUrlAppUpToDate(const drive::DriveAppInfo& drive_app) const; |
| 67 | 67 |
| 68 void AddOrUpdateDriveApp(const drive::DriveAppInfo& drive_app); | 68 void AddOrUpdateDriveApp(const drive::DriveAppInfo& drive_app); |
| 69 void ProcessRemovedDriveApp(const std::string& drive_app_id); | 69 void ProcessRemovedDriveApp(const std::string& drive_app_id); |
| 70 | 70 |
| 71 // drive::DriveAppRegistryObserver overrides: | 71 // drive::DriveAppRegistryObserver overrides: |
| 72 virtual void OnDriveAppRegistryUpdated() OVERRIDE; | 72 virtual void OnDriveAppRegistryUpdated() override; |
| 73 | 73 |
| 74 // extensions::ExtensionRegistryObserver overrides: | 74 // extensions::ExtensionRegistryObserver overrides: |
| 75 virtual void OnExtensionInstalled( | 75 virtual void OnExtensionInstalled( |
| 76 content::BrowserContext* browser_context, | 76 content::BrowserContext* browser_context, |
| 77 const extensions::Extension* extension, | 77 const extensions::Extension* extension, |
| 78 bool is_update) OVERRIDE; | 78 bool is_update) override; |
| 79 virtual void OnExtensionUninstalled( | 79 virtual void OnExtensionUninstalled( |
| 80 content::BrowserContext* browser_context, | 80 content::BrowserContext* browser_context, |
| 81 const extensions::Extension* extension, | 81 const extensions::Extension* extension, |
| 82 extensions::UninstallReason reason) OVERRIDE; | 82 extensions::UninstallReason reason) override; |
| 83 | 83 |
| 84 Profile* profile_; | 84 Profile* profile_; |
| 85 | 85 |
| 86 scoped_ptr<DriveServiceBridge> service_bridge_; | 86 scoped_ptr<DriveServiceBridge> service_bridge_; |
| 87 scoped_ptr<DriveAppMapping> mapping_; | 87 scoped_ptr<DriveAppMapping> mapping_; |
| 88 DriveAppInfos drive_apps_; | 88 DriveAppInfos drive_apps_; |
| 89 | 89 |
| 90 // Tracks the pending web app convertions. | 90 // Tracks the pending web app convertions. |
| 91 ScopedVector<DriveAppConverter> pending_converters_; | 91 ScopedVector<DriveAppConverter> pending_converters_; |
| 92 | 92 |
| 93 base::WeakPtrFactory<DriveAppProvider> weak_ptr_factory_; | 93 base::WeakPtrFactory<DriveAppProvider> weak_ptr_factory_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(DriveAppProvider); | 95 DISALLOW_COPY_AND_ASSIGN(DriveAppProvider); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ | 98 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ |
| OLD | NEW |