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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) OVERRIDE; | 81 const extensions::Extension* extension, |
| 82 extensions::UninstallReason reason) OVERRIDE; |
82 | 83 |
83 Profile* profile_; | 84 Profile* profile_; |
84 | 85 |
85 scoped_ptr<DriveServiceBridge> service_bridge_; | 86 scoped_ptr<DriveServiceBridge> service_bridge_; |
86 scoped_ptr<DriveAppMapping> mapping_; | 87 scoped_ptr<DriveAppMapping> mapping_; |
87 DriveAppInfos drive_apps_; | 88 DriveAppInfos drive_apps_; |
88 | 89 |
89 // Tracks the pending web app convertions. | 90 // Tracks the pending web app convertions. |
90 ScopedVector<DriveAppConverter> pending_converters_; | 91 ScopedVector<DriveAppConverter> pending_converters_; |
91 | 92 |
92 base::WeakPtrFactory<DriveAppProvider> weak_ptr_factory_; | 93 base::WeakPtrFactory<DriveAppProvider> weak_ptr_factory_; |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(DriveAppProvider); | 95 DISALLOW_COPY_AND_ASSIGN(DriveAppProvider); |
95 }; | 96 }; |
96 | 97 |
97 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ | 98 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ |
OLD | NEW |