OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "apps/launcher.h" | 5 #include "apps/launcher.h" |
6 | 6 |
7 #include "apps/apps_client.h" | 7 #include "apps/apps_client.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h" | 15 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h" |
16 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 16 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
17 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 17 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
18 #include "chrome/browser/extensions/extension_host.h" | 18 #include "chrome/browser/extensions/extension_host.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/common/extensions/api/app_runtime.h" | 20 #include "chrome/common/extensions/api/app_runtime.h" |
21 #include "chrome/common/extensions/extension_messages.h" | |
22 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
23 #include "content/public/browser/render_process_host.h" | 22 #include "content/public/browser/render_process_host.h" |
24 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
25 #include "extensions/browser/event_router.h" | 24 #include "extensions/browser/event_router.h" |
26 #include "extensions/browser/extension_prefs.h" | 25 #include "extensions/browser/extension_prefs.h" |
27 #include "extensions/browser/extension_system.h" | 26 #include "extensions/browser/extension_system.h" |
28 #include "extensions/browser/lazy_background_task_queue.h" | 27 #include "extensions/browser/lazy_background_task_queue.h" |
29 #include "extensions/browser/process_manager.h" | 28 #include "extensions/browser/process_manager.h" |
30 #include "extensions/common/extension.h" | 29 #include "extensions/common/extension.h" |
| 30 #include "extensions/common/extension_messages.h" |
31 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" | 31 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" |
32 #include "net/base/mime_util.h" | 32 #include "net/base/mime_util.h" |
33 #include "net/base/net_util.h" | 33 #include "net/base/net_util.h" |
34 #include "url/gurl.h" | 34 #include "url/gurl.h" |
35 | 35 |
36 #if defined(OS_CHROMEOS) | 36 #if defined(OS_CHROMEOS) |
37 #include "chrome/browser/chromeos/drive/file_errors.h" | 37 #include "chrome/browser/chromeos/drive/file_errors.h" |
38 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 38 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
39 #include "chrome/browser/chromeos/drive/file_system_util.h" | 39 #include "chrome/browser/chromeos/drive/file_system_util.h" |
40 #include "chrome/browser/chromeos/login/user_manager.h" | 40 #include "chrome/browser/chromeos/login/user_manager.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 void LaunchPlatformAppWithUrl(Profile* profile, | 403 void LaunchPlatformAppWithUrl(Profile* profile, |
404 const Extension* extension, | 404 const Extension* extension, |
405 const std::string& handler_id, | 405 const std::string& handler_id, |
406 const GURL& url, | 406 const GURL& url, |
407 const GURL& referrer_url) { | 407 const GURL& referrer_url) { |
408 extensions::AppEventRouter::DispatchOnLaunchedEventWithUrl( | 408 extensions::AppEventRouter::DispatchOnLaunchedEventWithUrl( |
409 profile, extension, handler_id, url, referrer_url); | 409 profile, extension, handler_id, url, referrer_url); |
410 } | 410 } |
411 | 411 |
412 } // namespace apps | 412 } // namespace apps |
OLD | NEW |