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

Side by Side Diff: chrome/browser/extensions/extension_gcm_app_handler.h

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix header file. 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
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_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 private: 67 private:
68 friend class BrowserContextKeyedAPIFactory<ExtensionGCMAppHandler>; 68 friend class BrowserContextKeyedAPIFactory<ExtensionGCMAppHandler>;
69 69
70 // ExtensionRegistryObserver implementation. 70 // ExtensionRegistryObserver implementation.
71 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 71 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
72 const Extension* extension) OVERRIDE; 72 const Extension* extension) OVERRIDE;
73 virtual void OnExtensionUnloaded( 73 virtual void OnExtensionUnloaded(
74 content::BrowserContext* browser_context, 74 content::BrowserContext* browser_context,
75 const Extension* extension, 75 const Extension* extension,
76 UnloadedExtensionInfo::Reason reason) OVERRIDE; 76 UnloadedExtensionInfo::Reason reason) OVERRIDE;
77 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 77 virtual void OnExtensionUninstalled(
78 const Extension* extension) OVERRIDE; 78 content::BrowserContext* browser_context,
79 const Extension* extension,
80 extensions::UninstallReason reason) OVERRIDE;
79 81
80 void AddDummyAppHandler(); 82 void AddDummyAppHandler();
81 void RemoveDummyAppHandler(); 83 void RemoveDummyAppHandler();
82 84
83 // BrowserContextKeyedAPI implementation. 85 // BrowserContextKeyedAPI implementation.
84 static const char* service_name() { return "ExtensionGCMAppHandler"; } 86 static const char* service_name() { return "ExtensionGCMAppHandler"; }
85 static const bool kServiceIsNULLWhileTesting = true; 87 static const bool kServiceIsNULLWhileTesting = true;
86 88
87 Profile* profile_; 89 Profile* profile_;
88 90
89 // Listen to extension load, unloaded notifications. 91 // Listen to extension load, unloaded notifications.
90 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 92 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
91 extension_registry_observer_; 93 extension_registry_observer_;
92 94
93 #if !defined(OS_ANDROID) 95 #if !defined(OS_ANDROID)
94 scoped_ptr<extensions::GcmJsEventRouter> js_event_router_; 96 scoped_ptr<extensions::GcmJsEventRouter> js_event_router_;
95 #endif 97 #endif
96 98
97 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_; 99 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_;
98 100
99 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler); 101 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler);
100 }; 102 };
101 103
102 } // namespace extensions 104 } // namespace extensions
103 105
104 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ 106 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui.cc ('k') | chrome/browser/extensions/extension_gcm_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698