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 <memory> | 7 #include <memory> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
| 20 #include "chrome/browser/extensions/api/file_handlers/directory_util.h" |
| 21 #include "chrome/browser/extensions/api/file_handlers/mime_util.h" |
| 22 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
19 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
20 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/render_process_host.h" | 25 #include "content/public/browser/render_process_host.h" |
22 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
23 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
24 #include "content/public/common/url_constants.h" | 28 #include "content/public/common/url_constants.h" |
25 #include "extensions/browser/api/app_runtime/app_runtime_api.h" | 29 #include "extensions/browser/api/app_runtime/app_runtime_api.h" |
26 #include "extensions/browser/api/file_handlers/app_file_handler_util.h" | |
27 #include "extensions/browser/api/file_handlers/directory_util.h" | |
28 #include "extensions/browser/api/file_handlers/mime_util.h" | |
29 #include "extensions/browser/entry_info.h" | 30 #include "extensions/browser/entry_info.h" |
30 #include "extensions/browser/event_router.h" | 31 #include "extensions/browser/event_router.h" |
31 #include "extensions/browser/extension_host.h" | 32 #include "extensions/browser/extension_host.h" |
32 #include "extensions/browser/extension_prefs.h" | 33 #include "extensions/browser/extension_prefs.h" |
33 #include "extensions/browser/extension_registry.h" | 34 #include "extensions/browser/extension_registry.h" |
34 #include "extensions/browser/granted_file_entry.h" | 35 #include "extensions/browser/granted_file_entry.h" |
35 #include "extensions/browser/lazy_background_task_queue.h" | 36 #include "extensions/browser/lazy_background_task_queue.h" |
36 #include "extensions/browser/process_manager.h" | 37 #include "extensions/browser/process_manager.h" |
37 #include "extensions/common/api/app_runtime.h" | 38 #include "extensions/common/api/app_runtime.h" |
38 #include "extensions/common/extension.h" | 39 #include "extensions/common/extension.h" |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 void LaunchPlatformAppWithUrl(Profile* profile, | 486 void LaunchPlatformAppWithUrl(Profile* profile, |
486 const Extension* app, | 487 const Extension* app, |
487 const std::string& handler_id, | 488 const std::string& handler_id, |
488 const GURL& url, | 489 const GURL& url, |
489 const GURL& referrer_url) { | 490 const GURL& referrer_url) { |
490 AppRuntimeEventRouter::DispatchOnLaunchedEventWithUrl( | 491 AppRuntimeEventRouter::DispatchOnLaunchedEventWithUrl( |
491 profile, app, handler_id, url, referrer_url); | 492 profile, app, handler_id, url, referrer_url); |
492 } | 493 } |
493 | 494 |
494 } // namespace apps | 495 } // namespace apps |
OLD | NEW |