1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef XWALK_APPLICATION_BROWSER_EVENT_OBSERVER_H_
6 #define XWALK_APPLICATION_BROWSER_EVENT_OBSERVER_H_
10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h"
14 namespace application {
16 class ApplicationEventManager;
19 // Abstract base class to observe application events.
22 explicit EventObserver(ApplicationEventManager* event_namager);
24 virtual void Observe(const std::string& app_id,
25 scoped_refptr<Event> event) = 0;
27 virtual ~EventObserver();
30 ApplicationEventManager* event_manager_;
33 } // namespace application
35 #endif // XWALK_APPLICATION_BROWSER_EVENT_OBSERVER_H_