Home
last modified time | relevance | path

Searched refs:EventRouter (Results 1 – 25 of 172) sorted by relevance

1234567

/external/chromium_org/extensions/browser/
Devent_router.cc81 const char EventRouter::kRegisteredEvents[] = "events";
83 struct EventRouter::ListenerProcess {
101 void EventRouter::DispatchExtensionMessage(IPC::Sender* ipc_sender, in DispatchExtensionMessage()
133 EventRouter* EventRouter::Get(content::BrowserContext* browser_context) { in Get()
138 std::string EventRouter::GetBaseEventName(const std::string& full_event_name) { in GetBaseEventName()
144 void EventRouter::DispatchEvent(IPC::Sender* ipc_sender, in DispatchEvent()
162 base::Bind(&EventRouter::IncrementInFlightEventsOnUI, in DispatchEvent()
167 EventRouter::EventRouter(BrowserContext* browser_context, in EventRouter() function in extensions::EventRouter
185 EventRouter::~EventRouter() {} in ~EventRouter()
187 void EventRouter::AddEventListener(const std::string& event_name, in AddEventListener()
[all …]
Dextension_message_filter.cc102 EventRouter* router = EventRouter::Get(browser_context_); in OnExtensionAddListener()
114 EventRouter* router = EventRouter::Get(browser_context_); in OnExtensionRemoveListener()
122 EventRouter* router = EventRouter::Get(browser_context_); in OnExtensionAddLazyListener()
130 EventRouter* router = EventRouter::Get(browser_context_); in OnExtensionRemoveLazyListener()
144 EventRouter* router = EventRouter::Get(browser_context_); in OnExtensionAddFilteredListener()
159 EventRouter* router = EventRouter::Get(browser_context_); in OnExtensionRemoveFilteredListener()
Devent_router_unittest.cc20 class MockEventRouterObserver : public EventRouter::Observer {
62 EXPECT_EQ("foo.onBar", EventRouter::GetBaseEventName("foo.onBar")); in TEST_F()
65 EXPECT_EQ("foo.onBar", EventRouter::GetBaseEventName("foo.onBar/123")); in TEST_F()
70 EventRouter router(NULL, NULL); in TEST_F()
Devent_router.h44 class EventRouter : public content::NotificationObserver,
74 static EventRouter* Get(content::BrowserContext* browser_context);
92 EventRouter(content::BrowserContext* browser_context,
94 virtual ~EventRouter();
291 DISALLOW_COPY_AND_ASSIGN(EventRouter);
315 EventRouter::UserGestureState user_gesture;
344 EventRouter::UserGestureState user_gesture,
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
Devent_router.cc175 extensions::EventRouter::Get(profile)->BroadcastEvent( in BroadcastEvent()
336 EventRouter::DriveJobInfoWithStatus::DriveJobInfoWithStatus() in DriveJobInfoWithStatus()
340 EventRouter::DriveJobInfoWithStatus::DriveJobInfoWithStatus( in DriveJobInfoWithStatus()
345 EventRouter::EventRouter(Profile* profile) in EventRouter() function in file_manager::EventRouter
353 EventRouter::~EventRouter() { in ~EventRouter()
356 void EventRouter::Shutdown() { in Shutdown()
399 void EventRouter::ObserveEvents() { in ObserveEvents()
432 base::Bind(&EventRouter::OnFileManagerPrefsChanged, in ObserveEvents()
445 void EventRouter::AddFileWatch(const base::FilePath& local_path, in AddFileWatch()
473 base::Bind(&EventRouter::HandleFileWatchNotification, in AddFileWatch()
[all …]
Dfile_browser_private_api.h15 class EventRouter; variable
29 EventRouter* event_router() { return event_router_.get(); } in event_router()
32 scoped_ptr<EventRouter> event_router_;
Devent_router.h49 class EventRouter
58 explicit EventRouter(Profile* profile);
59 virtual ~EventRouter();
202 base::WeakPtrFactory<EventRouter> weak_factory_;
203 DISALLOW_COPY_AND_ASSIGN(EventRouter);
/external/chromium_org/chrome/browser/extensions/api/networking_private/
Dnetworking_private_event_router_nonchromeos.cc58 EventRouter* event_router = EventRouter::Get(profile_); in NetworkingPrivateEventRouterImpl()
76 EventRouter* event_router = EventRouter::Get(profile_); in Shutdown()
102 EventRouter* event_router = EventRouter::Get(profile_); in StartOrStopListeningForNetworkChanges()
128 EventRouter* event_router = EventRouter::Get(profile_); in OnNetworksChangedEvent()
140 EventRouter* event_router = EventRouter::Get(profile_); in OnNetworkListChangedEvent()
Dnetworking_private_event_router_chromeos.cc77 EventRouter* event_router = EventRouter::Get(profile_); in NetworkingPrivateEventRouterImpl()
97 EventRouter* event_router = EventRouter::Get(profile_); in Shutdown()
122 EventRouter* event_router = EventRouter::Get(profile_); in StartOrStopListeningForNetworkChanges()
144 EventRouter* event_router = EventRouter::Get(profile_); in NetworkListChanged()
175 EventRouter* event_router = EventRouter::Get(profile_); in NetworkPropertiesUpdated()
197 EventRouter* event_router = EventRouter::Get(profile_); in OnPortalDetectionCompleted()
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
Dbraille_display_private_api.cc30 DefaultEventDelegate(EventRouter::Observer* observer, Profile* profile);
37 EventRouter::Observer* observer_;
121 EventRouter::Observer* observer, Profile* profile) in DefaultEventDelegate()
123 EventRouter* event_router = EventRouter::Get(profile_); in DefaultEventDelegate()
129 EventRouter::Get(profile_)->UnregisterObserver(observer_); in ~DefaultEventDelegate()
134 EventRouter::Get(profile_)->BroadcastEvent(event.Pass()); in BroadcastEvent()
138 EventRouter* event_router = EventRouter::Get(profile_); in HasListener()
/external/chromium_org/chrome/browser/extensions/api/tabs/
Dtabs_event_router.cc197 event->user_gesture = EventRouter::USER_GESTURE_NOT_ENABLED; in TabCreatedAt()
200 EventRouter::Get(profile)->BroadcastEvent(event.Pass()); in TabCreatedAt()
230 EventRouter::USER_GESTURE_UNKNOWN); in TabInsertedAt()
255 EventRouter::USER_GESTURE_UNKNOWN); in TabDetachedAt()
277 EventRouter::USER_GESTURE_UNKNOWN); in TabClosingAt()
303 EventRouter::UserGestureState gesture = in ActiveTabChanged()
305 ? EventRouter::USER_GESTURE_ENABLED in ActiveTabChanged()
306 : EventRouter::USER_GESTURE_NOT_ENABLED; in ActiveTabChanged()
355 EventRouter::USER_GESTURE_UNKNOWN); in TabSelectionChanged()
359 EventRouter::USER_GESTURE_UNKNOWN); in TabSelectionChanged()
[all …]
Dtabs_windows_api.cc20 EventRouter* event_router = EventRouter::Get(browser_context_); in TabsWindowsAPI()
68 EventRouter::Get(browser_context_)->UnregisterObserver(this); in Shutdown()
83 EventRouter::Get(browser_context_)->UnregisterObserver(this); in OnListenerAdded()
/external/chromium_org/chrome/browser/speech/extension_api/
Dtts_engine_extension_api.cc29 using extensions::EventRouter;
44 Profile* profile, EventRouter* event_router, std::string extension_id) { in WarnIfMissingPauseOrResumeListener()
66 EventRouter* event_router = EventRouter::Get(profile); in GetExtensionVoices()
169 EventRouter::Get(utterance->profile()) in ExtensionTtsEngineSpeak()
178 EventRouter::Get(utterance->profile()) in ExtensionTtsEngineStop()
188 EventRouter* event_router = EventRouter::Get(profile); in ExtensionTtsEnginePause()
200 EventRouter* event_router = EventRouter::Get(profile); in ExtensionTtsEngineResume()
/external/chromium_org/chrome/browser/extensions/api/idle/
Didle_manager.cc35 virtual void RegisterObserver(EventRouter::Observer* observer) OVERRIDE;
36 virtual void UnregisterObserver(EventRouter::Observer* observer) OVERRIDE;
56 EventRouter::Get(profile_) in OnStateChanged()
61 EventRouter::Observer* observer) { in RegisterObserver()
62 EventRouter::Get(profile_) in RegisterObserver()
66 void DefaultEventDelegate::UnregisterObserver(EventRouter::Observer* observer) { in UnregisterObserver()
67 EventRouter::Get(profile_)->UnregisterObserver(observer); in UnregisterObserver()
/external/chromium_org/chrome/browser/extensions/api/preference/
Dchrome_direct_setting_api.cc38 EventRouter::Observer* observer) { in RegisterEventListeners()
45 EventRouter::Get(profile)->RegisterObserver(observer, event_name); in RegisterEventListeners()
95 EventRouter::Get(profile_)->UnregisterObserver(this); in OnListenerAdded()
124 EventRouter* router = EventRouter::Get(profile_); in OnPrefChanged()
/external/chromium_org/chrome/browser/chromeos/file_system_provider/
Dprovided_file_system.h23 class EventRouter; variable
33 ProvidedFileSystem(extensions::EventRouter* event_router,
63 extensions::EventRouter* event_router_;
/external/chromium_org/chrome/browser/speech/
Dtts_extension_loader_chromeos.cc75 extensions::EventRouter* event_router = system->event_router(); in TtsExtensionLoaderChromeOs()
95 extensions::EventRouter::Get(profile_)->UnregisterObserver(this); in Shutdown()
102 extensions::EventRouter* event_router = system->event_router(); in IsTtsLoadedInThisProfile()
/external/chromium_org/apps/shell/browser/api/shell/
Dshell_api.h14 class EventRouter; variable
24 static void DispatchOnLaunchedEvent(extensions::EventRouter* event_router,
/external/chromium_org/apps/shell/browser/
Dshell_extension_system.h26 class EventRouter; variable
62 virtual EventRouter* event_router() OVERRIDE;
91 scoped_ptr<EventRouter> event_router_;
/external/chromium_org/chrome/browser/chromeos/extensions/
Dmedia_player_event_router.cc16 if (context && EventRouter::Get(context)) { in BroadcastEvent()
20 EventRouter::Get(context)->BroadcastEvent(event.Pass()); in BroadcastEvent()
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/
Doperation_manager_unittest.cc27 class FakeEventRouter : public extensions::EventRouter {
29 explicit FakeEventRouter(Profile* profile) : EventRouter(profile, NULL) {} in FakeEventRouter()
46 virtual EventRouter* event_router() OVERRIDE { in event_router()
/external/chromium_org/chrome/browser/chromeos/file_system_provider/operations/
Dclose_file.h21 class EventRouter; variable
33 CloseFile(extensions::EventRouter* event_router,
Dunmount.h18 class EventRouter; variable
32 Unmount(extensions::EventRouter* event_router,
Dget_metadata.h20 class EventRouter; variable
31 GetMetadata(extensions::EventRouter* event_router,
Dread_directory.h20 class EventRouter; variable
31 ReadDirectory(extensions::EventRouter* event_router,

1234567