OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ |
6 #define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ | 6 #define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/prefs/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 const content::NotificationSource& source, | 47 const content::NotificationSource& source, |
48 const content::NotificationDetails& details) OVERRIDE; | 48 const content::NotificationDetails& details) OVERRIDE; |
49 | 49 |
50 // Overridden from ExtensionRegisterObserver: | 50 // Overridden from ExtensionRegisterObserver: |
51 virtual void OnExtensionInstalled( | 51 virtual void OnExtensionInstalled( |
52 content::BrowserContext* browser_context, | 52 content::BrowserContext* browser_context, |
53 const extensions::Extension* extension, | 53 const extensions::Extension* extension, |
54 bool is_update) OVERRIDE; | 54 bool is_update) OVERRIDE; |
55 virtual void OnExtensionUninstalled( | 55 virtual void OnExtensionUninstalled( |
56 content::BrowserContext* browser_context, | 56 content::BrowserContext* browser_context, |
57 const extensions::Extension* extension) OVERRIDE; | 57 const extensions::Extension* extension, |
| 58 extensions::UninstallReason reason) OVERRIDE; |
58 | 59 |
59 // Checks for whether all the necessary files have downloaded to allow for | 60 // Checks for whether all the necessary files have downloaded to allow for |
60 // using the extension. | 61 // using the extension. |
61 virtual bool IsServiceAvailable(); | 62 virtual bool IsServiceAvailable(); |
62 | 63 |
63 // Determine if hotwording is allowed in this profile based on field trials | 64 // Determine if hotwording is allowed in this profile based on field trials |
64 // and language. | 65 // and language. |
65 virtual bool IsHotwordAllowed(); | 66 virtual bool IsHotwordAllowed(); |
66 | 67 |
67 // Checks if the user has opted into audio logging. Returns true if the user | 68 // Checks if the user has opted into audio logging. Returns true if the user |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 HotwordClient* client_; | 120 HotwordClient* client_; |
120 int error_message_; | 121 int error_message_; |
121 bool reinstall_pending_; | 122 bool reinstall_pending_; |
122 | 123 |
123 base::WeakPtrFactory<HotwordService> weak_factory_; | 124 base::WeakPtrFactory<HotwordService> weak_factory_; |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(HotwordService); | 126 DISALLOW_COPY_AND_ASSIGN(HotwordService); |
126 }; | 127 }; |
127 | 128 |
128 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ | 129 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ |
OLD | NEW |