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

Side by Side Diff: chrome/browser/extensions/extension_gcm_app_handler.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 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 instance_id::InstanceIDDriver* GetInstanceIDDriver() const; 75 instance_id::InstanceIDDriver* GetInstanceIDDriver() const;
76 76
77 private: 77 private:
78 friend class BrowserContextKeyedAPIFactory<ExtensionGCMAppHandler>; 78 friend class BrowserContextKeyedAPIFactory<ExtensionGCMAppHandler>;
79 79
80 // ExtensionRegistryObserver implementation. 80 // ExtensionRegistryObserver implementation.
81 void OnExtensionLoaded(content::BrowserContext* browser_context, 81 void OnExtensionLoaded(content::BrowserContext* browser_context,
82 const Extension* extension) override; 82 const Extension* extension) override;
83 void OnExtensionUnloaded(content::BrowserContext* browser_context, 83 void OnExtensionUnloaded(content::BrowserContext* browser_context,
84 const Extension* extension, 84 const Extension* extension,
85 UnloadedExtensionInfo::Reason reason) override; 85 UnloadedExtensionReason reason) override;
86 void OnExtensionUninstalled(content::BrowserContext* browser_context, 86 void OnExtensionUninstalled(content::BrowserContext* browser_context,
87 const Extension* extension, 87 const Extension* extension,
88 extensions::UninstallReason reason) override; 88 extensions::UninstallReason reason) override;
89 89
90 void RemoveInstanceID(const std::string& app_id); 90 void RemoveInstanceID(const std::string& app_id);
91 void AddDummyAppHandler(); 91 void AddDummyAppHandler();
92 void RemoveDummyAppHandler(); 92 void RemoveDummyAppHandler();
93 93
94 // BrowserContextKeyedAPI implementation. 94 // BrowserContextKeyedAPI implementation.
95 static const char* service_name() { return "ExtensionGCMAppHandler"; } 95 static const char* service_name() { return "ExtensionGCMAppHandler"; }
96 static const bool kServiceIsNULLWhileTesting = true; 96 static const bool kServiceIsNULLWhileTesting = true;
97 97
98 Profile* profile_; 98 Profile* profile_;
99 99
100 // Listen to extension load, unloaded notifications. 100 // Listen to extension load, unloaded notifications.
101 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 101 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
102 extension_registry_observer_; 102 extension_registry_observer_;
103 103
104 std::unique_ptr<extensions::GcmJsEventRouter> js_event_router_; 104 std::unique_ptr<extensions::GcmJsEventRouter> js_event_router_;
105 105
106 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_; 106 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler); 108 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler);
109 }; 109 };
110 110
111 } // namespace extensions 111 } // namespace extensions
112 112
113 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ 113 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698