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 <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_vector.h" | |
15 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
16 #include "components/drive/drive_app_registry_observer.h" | 15 #include "components/drive/drive_app_registry_observer.h" |
17 #include "extensions/browser/extension_registry_observer.h" | 16 #include "extensions/browser/extension_registry_observer.h" |
18 | 17 |
19 namespace drive { | 18 namespace drive { |
20 struct DriveAppInfo; | 19 struct DriveAppInfo; |
21 } | 20 } |
22 | 21 |
23 class BrowserContextKeyedServiceFactory; | 22 class BrowserContextKeyedServiceFactory; |
24 class DriveAppConverter; | 23 class DriveAppConverter; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 91 |
93 Profile* profile_; | 92 Profile* profile_; |
94 DriveAppUninstallSyncService* uninstall_sync_service_; | 93 DriveAppUninstallSyncService* uninstall_sync_service_; |
95 | 94 |
96 std::unique_ptr<DriveServiceBridge> service_bridge_; | 95 std::unique_ptr<DriveServiceBridge> service_bridge_; |
97 std::unique_ptr<DriveAppMapping> mapping_; | 96 std::unique_ptr<DriveAppMapping> mapping_; |
98 DriveAppInfos drive_apps_; | 97 DriveAppInfos drive_apps_; |
99 bool drive_app_registry_updated_; | 98 bool drive_app_registry_updated_; |
100 | 99 |
101 // Tracks the pending web app convertions. | 100 // Tracks the pending web app convertions. |
102 ScopedVector<DriveAppConverter> pending_converters_; | 101 std::vector<std::unique_ptr<DriveAppConverter>> pending_converters_; |
103 | 102 |
104 base::WeakPtrFactory<DriveAppProvider> weak_ptr_factory_; | 103 base::WeakPtrFactory<DriveAppProvider> weak_ptr_factory_; |
105 | 104 |
106 DISALLOW_COPY_AND_ASSIGN(DriveAppProvider); | 105 DISALLOW_COPY_AND_ASSIGN(DriveAppProvider); |
107 }; | 106 }; |
108 | 107 |
109 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ | 108 #endif // CHROME_BROWSER_APPS_DRIVE_DRIVE_APP_PROVIDER_H_ |
OLD | NEW |