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 <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "extensions/common/extension.h" | 35 #include "extensions/common/extension.h" |
36 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" | 36 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" |
37 #include "net/base/filename_util.h" | 37 #include "net/base/filename_util.h" |
38 #include "net/base/net_util.h" | 38 #include "net/base/net_util.h" |
39 #include "url/gurl.h" | 39 #include "url/gurl.h" |
40 | 40 |
41 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
42 #include "components/user_manager/user_manager.h" | 42 #include "components/user_manager/user_manager.h" |
43 #endif | 43 #endif |
44 | 44 |
45 namespace app_runtime = extensions::core_api::app_runtime; | 45 namespace app_runtime = extensions::api::app_runtime; |
46 | 46 |
47 using content::BrowserThread; | 47 using content::BrowserThread; |
48 using extensions::AppRuntimeEventRouter; | 48 using extensions::AppRuntimeEventRouter; |
49 using extensions::app_file_handler_util::CreateFileEntry; | 49 using extensions::app_file_handler_util::CreateFileEntry; |
50 using extensions::app_file_handler_util::FileHandlerCanHandleFile; | 50 using extensions::app_file_handler_util::FileHandlerCanHandleFile; |
51 using extensions::app_file_handler_util::FileHandlerForId; | 51 using extensions::app_file_handler_util::FileHandlerForId; |
52 using extensions::app_file_handler_util::FirstFileHandlerForFile; | 52 using extensions::app_file_handler_util::FirstFileHandlerForFile; |
53 using extensions::app_file_handler_util::HasFileSystemWritePermission; | 53 using extensions::app_file_handler_util::HasFileSystemWritePermission; |
54 using extensions::app_file_handler_util::PrepareFilesForWritableApp; | 54 using extensions::app_file_handler_util::PrepareFilesForWritableApp; |
55 using extensions::EventRouter; | 55 using extensions::EventRouter; |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 void LaunchPlatformAppWithUrl(Profile* profile, | 423 void LaunchPlatformAppWithUrl(Profile* profile, |
424 const Extension* extension, | 424 const Extension* extension, |
425 const std::string& handler_id, | 425 const std::string& handler_id, |
426 const GURL& url, | 426 const GURL& url, |
427 const GURL& referrer_url) { | 427 const GURL& referrer_url) { |
428 AppRuntimeEventRouter::DispatchOnLaunchedEventWithUrl( | 428 AppRuntimeEventRouter::DispatchOnLaunchedEventWithUrl( |
429 profile, extension, handler_id, url, referrer_url); | 429 profile, extension, handler_id, url, referrer_url); |
430 } | 430 } |
431 | 431 |
432 } // namespace apps | 432 } // namespace apps |
OLD | NEW |