OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/platform_app_launcher.h" | 5 #include "chrome/browser/extensions/platform_app_launcher.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/public/browser/child_process_security_policy.h" | 23 #include "content/public/browser/child_process_security_policy.h" |
24 #include "content/public/browser/render_process_host.h" | 24 #include "content/public/browser/render_process_host.h" |
25 #include "net/base/mime_util.h" | 25 #include "net/base/mime_util.h" |
26 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
27 #include "webkit/fileapi/isolated_context.h" | 27 #include "webkit/fileapi/isolated_context.h" |
28 #include "webkit/glue/web_intent_data.h" | 28 #include "webkit/glue/web_intent_data.h" |
29 #include "webkit/glue/web_intent_service_data.h" | 29 #include "webkit/glue/web_intent_service_data.h" |
30 | 30 |
31 using content::BrowserThread; | 31 using content::BrowserThread; |
32 using extensions::Extension; | 32 using extensions::Extension; |
| 33 using extensions::ExtensionSystem; |
33 | 34 |
34 namespace { | 35 namespace { |
35 | 36 |
36 const char kViewIntent[] = "http://webintents.org/view"; | 37 const char kViewIntent[] = "http://webintents.org/view"; |
37 | 38 |
38 // Class to handle launching of platform apps with command line information. | 39 // Class to handle launching of platform apps with command line information. |
39 // An instance of this class is created for each launch. The lifetime of these | 40 // An instance of this class is created for each launch. The lifetime of these |
40 // instances is managed by reference counted pointers. As long as an instance | 41 // instances is managed by reference counted pointers. As long as an instance |
41 // has outstanding tasks on a message queue it will be retained; once all | 42 // has outstanding tasks on a message queue it will be retained; once all |
42 // outstanding tasks are completed it will be deleted. | 43 // outstanding tasks are completed it will be deleted. |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 new PlatformAppBlobIntentLauncher(profile, extension, web_intent_data); | 296 new PlatformAppBlobIntentLauncher(profile, extension, web_intent_data); |
296 launcher->Launch(); | 297 launcher->Launch(); |
297 return; | 298 return; |
298 } | 299 } |
299 | 300 |
300 extensions::AppEventRouter::DispatchOnLaunchedEventWithWebIntent( | 301 extensions::AppEventRouter::DispatchOnLaunchedEventWithWebIntent( |
301 profile, extension, web_intent_data); | 302 profile, extension, web_intent_data); |
302 } | 303 } |
303 | 304 |
304 } // namespace extensions | 305 } // namespace extensions |
OLD | NEW |