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_APP_RUNTIME_APP_RUNTIME_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
6 #define EXTENSIONS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ | 6 #define EXTENSIONS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const std::vector<EntryInfo>& entries, | 68 const std::vector<EntryInfo>& entries, |
69 const std::vector<GrantedFileEntry>& file_entries); | 69 const std::vector<GrantedFileEntry>& file_entries); |
70 | 70 |
71 // |handler_id| corresponds to the id of the url_handlers item | 71 // |handler_id| corresponds to the id of the url_handlers item |
72 // in the manifest that resulted in a match which triggered this launch. | 72 // in the manifest that resulted in a match which triggered this launch. |
73 static void DispatchOnLaunchedEventWithUrl(content::BrowserContext* context, | 73 static void DispatchOnLaunchedEventWithUrl(content::BrowserContext* context, |
74 const Extension* extension, | 74 const Extension* extension, |
75 const std::string& handler_id, | 75 const std::string& handler_id, |
76 const GURL& url, | 76 const GURL& url, |
77 const GURL& referrer_url); | 77 const GURL& referrer_url); |
| 78 |
| 79 // Dispatch an onLaunched event with a specific action. |
| 80 static void DispatchOnLaunchedEventWithAction( |
| 81 content::BrowserContext* context, |
| 82 const Extension* extension, |
| 83 ActionData action_data); |
78 }; | 84 }; |
79 | 85 |
80 } // namespace extensions | 86 } // namespace extensions |
81 | 87 |
82 #endif // EXTENSIONS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ | 88 #endif // EXTENSIONS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
OLD | NEW |