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

Side by Side Diff: chrome/browser/extensions/api/app_runtime/app_runtime_api.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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 | Annotate | Revision Log
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/api/app_runtime/app_runtime_api.h" 5 #include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" 13 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_system.h"
16 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/extensions/api/app_runtime.h" 16 #include "chrome/common/extensions/api/app_runtime.h"
18 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
19 #include "extensions/browser/event_router.h" 18 #include "extensions/browser/event_router.h"
20 #include "extensions/browser/extension_prefs.h" 19 #include "extensions/browser/extension_prefs.h"
20 #include "extensions/browser/extension_system.h"
21 #include "extensions/common/extension.h" 21 #include "extensions/common/extension.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
25 #include "chrome/browser/chromeos/login/user_manager.h" 25 #include "chrome/browser/chromeos/login/user_manager.h"
26 #endif 26 #endif
27 27
28 namespace extensions { 28 namespace extensions {
29 29
30 namespace app_runtime = api::app_runtime; 30 namespace app_runtime = api::app_runtime;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const GURL& referrer_url) { 103 const GURL& referrer_url) {
104 api::app_runtime::LaunchData launch_data; 104 api::app_runtime::LaunchData launch_data;
105 launch_data.id.reset(new std::string(handler_id)); 105 launch_data.id.reset(new std::string(handler_id));
106 launch_data.url.reset(new std::string(url.spec())); 106 launch_data.url.reset(new std::string(url.spec()));
107 launch_data.referrer_url.reset(new std::string(referrer_url.spec())); 107 launch_data.referrer_url.reset(new std::string(referrer_url.spec()));
108 DispatchOnLaunchedEventImpl( 108 DispatchOnLaunchedEventImpl(
109 extension->id(), launch_data.ToValue().Pass(), profile); 109 extension->id(), launch_data.ToValue().Pass(), profile);
110 } 110 }
111 111
112 } // namespace extensions 112 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/api_function.cc ('k') | chrome/browser/extensions/api/audio/audio_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698