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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/prefs/pref_change_registrar.h" | 12 #include "base/prefs/pref_change_registrar.h" |
13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
14 #include "chrome/browser/extensions/webstore_startup_installer.h" | 14 #include "chrome/browser/extensions/webstore_startup_installer.h" |
15 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 15 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
16 #include "chrome/common/extensions/webstore_install_result.h" | 16 #include "chrome/common/extensions/webstore_install_result.h" |
17 #include "components/keyed_service/core/keyed_service.h" | 17 #include "components/keyed_service/core/keyed_service.h" |
18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
20 #include "extensions/browser/extension_registry.h" | 20 #include "extensions/browser/extension_registry.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 235 |
236 // The WeakPtrFactory should be the last member, so the weak pointer | 236 // The WeakPtrFactory should be the last member, so the weak pointer |
237 // gets invalidated before the destructors for other members run, | 237 // gets invalidated before the destructors for other members run, |
238 // to avoid callbacks into a half-destroyed object. | 238 // to avoid callbacks into a half-destroyed object. |
239 base::WeakPtrFactory<HotwordService> weak_factory_; | 239 base::WeakPtrFactory<HotwordService> weak_factory_; |
240 | 240 |
241 DISALLOW_COPY_AND_ASSIGN(HotwordService); | 241 DISALLOW_COPY_AND_ASSIGN(HotwordService); |
242 }; | 242 }; |
243 | 243 |
244 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ | 244 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ |
OLD | NEW |