OLD | NEW |
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 EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_H_ |
6 #define EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_H_ | 6 #define EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 private: | 69 private: |
70 friend class BrowserContextKeyedAPIFactory<RuntimeAPI>; | 70 friend class BrowserContextKeyedAPIFactory<RuntimeAPI>; |
71 | 71 |
72 // ExtensionRegistryObserver implementation. | 72 // ExtensionRegistryObserver implementation. |
73 void OnExtensionLoaded(content::BrowserContext* browser_context, | 73 void OnExtensionLoaded(content::BrowserContext* browser_context, |
74 const Extension* extension) override; | 74 const Extension* extension) override; |
75 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, | 75 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, |
76 const Extension* extension, | 76 const Extension* extension, |
77 bool is_update, | 77 bool is_update, |
78 bool from_ephemeral, | |
79 const std::string& old_name) override; | 78 const std::string& old_name) override; |
80 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 79 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
81 const Extension* extension, | 80 const Extension* extension, |
82 UninstallReason reason) override; | 81 UninstallReason reason) override; |
83 | 82 |
84 // BrowserContextKeyedAPI implementation: | 83 // BrowserContextKeyedAPI implementation: |
85 static const char* service_name() { return "RuntimeAPI"; } | 84 static const char* service_name() { return "RuntimeAPI"; } |
86 static const bool kServiceRedirectedInIncognito = true; | 85 static const bool kServiceRedirectedInIncognito = true; |
87 static const bool kServiceIsNULLWhileTesting = true; | 86 static const bool kServiceIsNULLWhileTesting = true; |
88 void Shutdown() override; | 87 void Shutdown() override; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 RUNTIME_GETPACKAGEDIRECTORYENTRY) | 228 RUNTIME_GETPACKAGEDIRECTORYENTRY) |
230 | 229 |
231 protected: | 230 protected: |
232 ~RuntimeGetPackageDirectoryEntryFunction() override {} | 231 ~RuntimeGetPackageDirectoryEntryFunction() override {} |
233 ResponseAction Run() override; | 232 ResponseAction Run() override; |
234 }; | 233 }; |
235 | 234 |
236 } // namespace extensions | 235 } // namespace extensions |
237 | 236 |
238 #endif // EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_H_ | 237 #endif // EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_H_ |
OLD | NEW |