Index: apps/browser/api/app_runtime/app_runtime_api.h |
diff --git a/chrome/browser/extensions/api/app_runtime/app_runtime_api.h b/apps/browser/api/app_runtime/app_runtime_api.h |
similarity index 64% |
rename from chrome/browser/extensions/api/app_runtime/app_runtime_api.h |
rename to apps/browser/api/app_runtime/app_runtime_api.h |
index c34e0a96c1273c3e58263e60897038f488dff0e6..29a196bc7e22af2e3e8c756e8b4257fadef10491 100644 |
--- a/chrome/browser/extensions/api/app_runtime/app_runtime_api.h |
+++ b/apps/browser/api/app_runtime/app_runtime_api.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
-#define CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
+#ifndef APPS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
+#define APPS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
#include <string> |
@@ -15,10 +15,12 @@ class WebContents; |
} |
namespace extensions { |
- |
class Extension; |
+} |
+ |
+namespace apps { |
-namespace app_file_handler_util { |
+namespace file_handler_util { |
struct GrantedFileEntry; |
} |
@@ -26,12 +28,12 @@ class AppEventRouter { |
public: |
// Dispatches the onLaunched event to the given app. |
static void DispatchOnLaunchedEvent(content::BrowserContext* context, |
- const Extension* extension); |
+ const extensions::Extension* extension); |
// Dispatches the onRestarted event to the given app, providing a list of |
// restored file entries from the previous run. |
static void DispatchOnRestartedEvent(content::BrowserContext* context, |
- const Extension* extension); |
+ const extensions::Extension* extension); |
// TODO(benwells): Update this comment, it is out of date. |
// Dispatches the onLaunched event to the given app, providing launch data of |
@@ -50,20 +52,21 @@ class AppEventRouter { |
// manifest that resulted in a match which triggered this launch. |
static void DispatchOnLaunchedEventWithFileEntry( |
content::BrowserContext* context, |
- const Extension* extension, |
+ const extensions::Extension* extension, |
const std::string& handler_id, |
const std::string& mime_type, |
- const extensions::app_file_handler_util::GrantedFileEntry& file_entry); |
+ const file_handler_util::GrantedFileEntry& file_entry); |
// |handler_id| corresponds to the id of the url_handlers item |
// in the manifest that resulted in a match which triggered this launch. |
- static void DispatchOnLaunchedEventWithUrl(content::BrowserContext* context, |
- const Extension* extension, |
- const std::string& handler_id, |
- const GURL& url, |
- const GURL& referrer_url); |
+ static void DispatchOnLaunchedEventWithUrl( |
+ content::BrowserContext* context, |
+ const extensions::Extension* extension, |
+ const std::string& handler_id, |
+ const GURL& url, |
+ const GURL& referrer_url); |
}; |
-} // namespace extensions |
+} // namespace apps |
-#endif // CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_ |
+#endif // APPS_BROWSER_API_APP_RUNTIME_APP_RUNTIME_API_H_ |