Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: chrome/browser/extensions/platform_app_launcher.cc

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 new PlatformAppBlobIntentLauncher(profile, extension, web_intent_data); 302 new PlatformAppBlobIntentLauncher(profile, extension, web_intent_data);
302 launcher->Launch(); 303 launcher->Launch();
303 return; 304 return;
304 } 305 }
305 306
306 extensions::AppEventRouter::DispatchOnLaunchedEventWithWebIntent( 307 extensions::AppEventRouter::DispatchOnLaunchedEventWithWebIntent(
307 profile, extension, web_intent_data); 308 profile, extension, web_intent_data);
308 } 309 }
309 310
310 } // namespace extensions 311 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698