Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Side by Side Diff: chrome/browser/apps/drive/drive_app_provider.h

Issue 386033002: Prune shared extendion module after extension updating. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/apps/drive/drive_app_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/apps/drive/drive_app_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698