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

Side by Side Diff: extensions/browser/api/app_runtime/app_runtime_api.h

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Initial upload Created 4 years, 4 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698