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