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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

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 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h" 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 void DeveloperPrivateEventRouter::OnExtensionLoaded( 286 void DeveloperPrivateEventRouter::OnExtensionLoaded(
287 content::BrowserContext* browser_context, 287 content::BrowserContext* browser_context,
288 const Extension* extension) { 288 const Extension* extension) {
289 DCHECK(profile_->IsSameProfile(Profile::FromBrowserContext(browser_context))); 289 DCHECK(profile_->IsSameProfile(Profile::FromBrowserContext(browser_context)));
290 BroadcastItemStateChanged(developer::EVENT_TYPE_LOADED, extension->id()); 290 BroadcastItemStateChanged(developer::EVENT_TYPE_LOADED, extension->id());
291 } 291 }
292 292
293 void DeveloperPrivateEventRouter::OnExtensionUnloaded( 293 void DeveloperPrivateEventRouter::OnExtensionUnloaded(
294 content::BrowserContext* browser_context, 294 content::BrowserContext* browser_context,
295 const Extension* extension, 295 const Extension* extension,
296 UnloadedExtensionInfo::Reason reason) { 296 UnloadedExtensionReason reason) {
297 DCHECK(profile_->IsSameProfile(Profile::FromBrowserContext(browser_context))); 297 DCHECK(profile_->IsSameProfile(Profile::FromBrowserContext(browser_context)));
298 BroadcastItemStateChanged(developer::EVENT_TYPE_UNLOADED, extension->id()); 298 BroadcastItemStateChanged(developer::EVENT_TYPE_UNLOADED, extension->id());
299 } 299 }
300 300
301 void DeveloperPrivateEventRouter::OnExtensionInstalled( 301 void DeveloperPrivateEventRouter::OnExtensionInstalled(
302 content::BrowserContext* browser_context, 302 content::BrowserContext* browser_context,
303 const Extension* extension, 303 const Extension* extension,
304 bool is_update) { 304 bool is_update) {
305 DCHECK(profile_->IsSameProfile(Profile::FromBrowserContext(browser_context))); 305 DCHECK(profile_->IsSameProfile(Profile::FromBrowserContext(browser_context)));
306 BroadcastItemStateChanged(developer::EVENT_TYPE_INSTALLED, extension->id()); 306 BroadcastItemStateChanged(developer::EVENT_TYPE_INSTALLED, extension->id());
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 update.extension_id, update.command_name, *update.keybinding); 1577 update.extension_id, update.command_name, *update.keybinding);
1578 } 1578 }
1579 1579
1580 return RespondNow(NoArguments()); 1580 return RespondNow(NoArguments());
1581 } 1581 }
1582 1582
1583 1583
1584 } // namespace api 1584 } // namespace api
1585 1585
1586 } // namespace extensions 1586 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698