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/browser/api/app_runtime/app_runtime_api.h" | 7 #include "apps/browser/api/app_runtime/app_runtime_api.h" |
8 #include "apps/browser/file_handler_util.h" | 8 #include "apps/browser/file_handler_util.h" |
9 #include "apps/common/api/app_runtime.h" | 9 #include "apps/common/api/app_runtime.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "net/base/filename_util.h" | 34 #include "net/base/filename_util.h" |
35 #include "net/base/mime_sniffer.h" | 35 #include "net/base/mime_sniffer.h" |
36 #include "net/base/mime_util.h" | 36 #include "net/base/mime_util.h" |
37 #include "net/base/net_util.h" | 37 #include "net/base/net_util.h" |
38 #include "url/gurl.h" | 38 #include "url/gurl.h" |
39 | 39 |
40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
41 #include "chrome/browser/chromeos/drive/file_errors.h" | 41 #include "chrome/browser/chromeos/drive/file_errors.h" |
42 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 42 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
43 #include "chrome/browser/chromeos/drive/file_system_util.h" | 43 #include "chrome/browser/chromeos/drive/file_system_util.h" |
44 #include "chrome/browser/chromeos/login/user_manager.h" | 44 #include "chrome/browser/chromeos/login/users/user_manager.h" |
45 #endif | 45 #endif |
46 | 46 |
47 namespace app_runtime = apps::api::app_runtime; | 47 namespace app_runtime = apps::api::app_runtime; |
48 | 48 |
49 using apps::file_handler_util::GrantedFileEntry; | 49 using apps::file_handler_util::GrantedFileEntry; |
50 using content::BrowserThread; | 50 using content::BrowserThread; |
51 using extensions::app_file_handler_util::CheckWritableFiles; | 51 using extensions::app_file_handler_util::CheckWritableFiles; |
52 using extensions::app_file_handler_util::FileHandlerForId; | 52 using extensions::app_file_handler_util::FileHandlerForId; |
53 using extensions::app_file_handler_util::FileHandlerCanHandleFile; | 53 using extensions::app_file_handler_util::FileHandlerCanHandleFile; |
54 using extensions::app_file_handler_util::FirstFileHandlerForFile; | 54 using extensions::app_file_handler_util::FirstFileHandlerForFile; |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 void LaunchPlatformAppWithUrl(Profile* profile, | 426 void LaunchPlatformAppWithUrl(Profile* profile, |
427 const Extension* extension, | 427 const Extension* extension, |
428 const std::string& handler_id, | 428 const std::string& handler_id, |
429 const GURL& url, | 429 const GURL& url, |
430 const GURL& referrer_url) { | 430 const GURL& referrer_url) { |
431 AppEventRouter::DispatchOnLaunchedEventWithUrl( | 431 AppEventRouter::DispatchOnLaunchedEventWithUrl( |
432 profile, extension, handler_id, url, referrer_url); | 432 profile, extension, handler_id, url, referrer_url); |
433 } | 433 } |
434 | 434 |
435 } // namespace apps | 435 } // namespace apps |
OLD | NEW |