Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / app_list / hotword_background_activity_delegate.h
1 // Copyright 2014 The Chromium Authors. 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.
4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_HOTWORD_BACKGROUND_ACTIVITY_DELEGATE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_HOTWORD_BACKGROUND_ACTIVITY_DELEGATE_H_
7
8 namespace app_list {
9
10 // Delegate for HotwordBackgroundActivityMonitor.
11 class HotwordBackgroundActivityDelegate {
12  public:
13   virtual ~HotwordBackgroundActivityDelegate() {}
14
15   // Returns the render process ID for the hotword recognizer of the delegate.
16   // The value is used to check if the media request comes from its own render
17   // process.
18   virtual int GetRenderProcessID() = 0;
19
20   // Called when the background hotword recognizer's availablility has changed.
21   virtual void OnHotwordBackgroundActivityChanged() = 0;
22 };
23
24 }  // namespace app_list
25
26 #endif  // CHROME_BROWSER_UI_APP_LIST_HOTWORD_BACKGROUND_ACTIVITY_DELEGATE_H_