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

Side by Side Diff: extensions/browser/api/management/management_api.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_
6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ 6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/scoped_observer.h" 10 #include "base/scoped_observer.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 public: 218 public:
219 explicit ManagementEventRouter(content::BrowserContext* context); 219 explicit ManagementEventRouter(content::BrowserContext* context);
220 ~ManagementEventRouter() override; 220 ~ManagementEventRouter() override;
221 221
222 private: 222 private:
223 // ExtensionRegistryObserver implementation. 223 // ExtensionRegistryObserver implementation.
224 void OnExtensionLoaded(content::BrowserContext* browser_context, 224 void OnExtensionLoaded(content::BrowserContext* browser_context,
225 const Extension* extension) override; 225 const Extension* extension) override;
226 void OnExtensionUnloaded(content::BrowserContext* browser_context, 226 void OnExtensionUnloaded(content::BrowserContext* browser_context,
227 const Extension* extension, 227 const Extension* extension,
228 UnloadedExtensionInfo::Reason reason) override; 228 UnloadedExtensionReason reason) override;
229 void OnExtensionInstalled(content::BrowserContext* browser_context, 229 void OnExtensionInstalled(content::BrowserContext* browser_context,
230 const Extension* extension, 230 const Extension* extension,
231 bool is_update) override; 231 bool is_update) override;
232 void OnExtensionUninstalled(content::BrowserContext* browser_context, 232 void OnExtensionUninstalled(content::BrowserContext* browser_context,
233 const Extension* extension, 233 const Extension* extension,
234 extensions::UninstallReason reason) override; 234 extensions::UninstallReason reason) override;
235 235
236 // Dispatches management api events to listening extensions. 236 // Dispatches management api events to listening extensions.
237 void BroadcastEvent(const Extension* extension, 237 void BroadcastEvent(const Extension* extension,
238 events::HistogramValue histogram_value, 238 events::HistogramValue histogram_value,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 std::unique_ptr<ManagementEventRouter> management_event_router_; 278 std::unique_ptr<ManagementEventRouter> management_event_router_;
279 279
280 std::unique_ptr<ManagementAPIDelegate> delegate_; 280 std::unique_ptr<ManagementAPIDelegate> delegate_;
281 281
282 DISALLOW_COPY_AND_ASSIGN(ManagementAPI); 282 DISALLOW_COPY_AND_ASSIGN(ManagementAPI);
283 }; 283 };
284 284
285 } // namespace extensions 285 } // namespace extensions
286 286
287 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_ 287 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/idle/idle_manager.cc ('k') | extensions/browser/api/management/management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698