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

Side by Side Diff: chrome/browser/extensions/api/tabs/windows_event_router.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/tabs/windows_event_router.h" 5 #include "chrome/browser/extensions/api/tabs/windows_event_router.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_system.h"
11 #include "chrome/browser/extensions/extension_util.h" 10 #include "chrome/browser/extensions/extension_util.h"
12 #include "chrome/browser/extensions/window_controller.h" 11 #include "chrome/browser/extensions/window_controller.h"
13 #include "chrome/browser/extensions/window_controller_list.h" 12 #include "chrome/browser/extensions/window_controller_list.h"
14 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/common/extensions/api/windows.h" 14 #include "chrome/common/extensions/api/windows.h"
16 #include "chrome/common/extensions/extension_constants.h" 15 #include "chrome/common/extensions/extension_constants.h"
17 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
18 #include "extensions/browser/event_router.h" 17 #include "extensions/browser/event_router.h"
18 #include "extensions/browser/extension_system.h"
19 19
20 #if defined(TOOLKIT_GTK) 20 #if defined(TOOLKIT_GTK)
21 #include "ui/base/x/active_window_watcher_x.h" 21 #include "ui/base/x/active_window_watcher_x.h"
22 #endif 22 #endif
23 23
24 using content::BrowserContext; 24 using content::BrowserContext;
25 25
26 namespace extensions { 26 namespace extensions {
27 27
28 namespace windows = extensions::api::windows; 28 namespace windows = extensions::api::windows;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 void WindowsEventRouter::DispatchEvent(const std::string& event_name, 158 void WindowsEventRouter::DispatchEvent(const std::string& event_name,
159 Profile* profile, 159 Profile* profile,
160 scoped_ptr<base::ListValue> args) { 160 scoped_ptr<base::ListValue> args) {
161 scoped_ptr<Event> event(new Event(event_name, args.Pass())); 161 scoped_ptr<Event> event(new Event(event_name, args.Pass()));
162 event->restrict_to_browser_context = profile; 162 event->restrict_to_browser_context = profile;
163 ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass()); 163 ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass());
164 } 164 }
165 165
166 } // namespace extensions 166 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_windows_api.cc ('k') | chrome/browser/extensions/api/terminal/terminal_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698