Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class Extension; | 9 class Extension; |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 class RuntimeEventRouter { | 14 class RuntimeEventRouter { |
| 15 public: | 15 public: |
| 16 // Dispatches the onInstalled event to the given extension. | 16 // Dispatches the onInstalled event to the given extension. |
| 17 static void DispatchOnInstalledEvent(Profile* profile, | 17 static void DispatchOnInstalledEvent(Profile* profile, |
| 18 const Extension* extension); | 18 const Extension* extension); |
| 19 | |
| 20 // Dispatches the onLaunched event to the given app. | |
| 21 static void DispatchOnLaunchedEvent(Profile* profile, | |
|
Matt Perry
2012/04/05 19:32:16
This actually seems like it belongs in the chrome.
Mihai Parparita -not on Chrome
2012/04/05 21:33:18
Done.
| |
| 22 const Extension* extension); | |
| 19 }; | 23 }; |
| 20 | 24 |
| 21 } // namespace extensions | 25 } // namespace extensions |
| 22 | 26 |
| 23 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ | 27 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ |
| OLD | NEW |