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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual ~HotwordService(); | 43 virtual ~HotwordService(); |
44 | 44 |
45 // Overridden from content::NotificationObserver: | 45 // Overridden from content::NotificationObserver: |
46 virtual void Observe(int type, | 46 virtual void Observe(int type, |
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) OVERRIDE; | 53 const extensions::Extension* extension, |
| 54 bool is_update) OVERRIDE; |
54 virtual void OnExtensionUninstalled( | 55 virtual void OnExtensionUninstalled( |
55 content::BrowserContext* browser_context, | 56 content::BrowserContext* browser_context, |
56 const extensions::Extension* extension) OVERRIDE; | 57 const extensions::Extension* extension) OVERRIDE; |
57 | 58 |
58 // Checks for whether all the necessary files have downloaded to allow for | 59 // Checks for whether all the necessary files have downloaded to allow for |
59 // using the extension. | 60 // using the extension. |
60 virtual bool IsServiceAvailable(); | 61 virtual bool IsServiceAvailable(); |
61 | 62 |
62 // Determine if hotwording is allowed in this profile based on field trials | 63 // Determine if hotwording is allowed in this profile based on field trials |
63 // and language. | 64 // and language. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 HotwordClient* client_; | 119 HotwordClient* client_; |
119 int error_message_; | 120 int error_message_; |
120 bool reinstall_pending_; | 121 bool reinstall_pending_; |
121 | 122 |
122 base::WeakPtrFactory<HotwordService> weak_factory_; | 123 base::WeakPtrFactory<HotwordService> weak_factory_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(HotwordService); | 125 DISALLOW_COPY_AND_ASSIGN(HotwordService); |
125 }; | 126 }; |
126 | 127 |
127 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ | 128 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ |
OLD | NEW |