OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SPEECH_TTS_EXTENSION_LOADER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_TTS_EXTENSION_LOADER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_SPEECH_TTS_EXTENSION_LOADER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_SPEECH_TTS_EXTENSION_LOADER_CHROMEOS_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/event_router.h" | 8 #include "chrome/browser/extensions/event_router.h" |
9 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 9 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
10 | 10 |
| 11 class Profile; |
| 12 |
11 // Profile-keyed class that loads a built-in TTS component extension | 13 // Profile-keyed class that loads a built-in TTS component extension |
12 // into a given profile on Chrome OS. | 14 // into a given profile on Chrome OS. |
13 class TtsExtensionLoaderChromeOs | 15 class TtsExtensionLoaderChromeOs |
14 : public BrowserContextKeyedService, | 16 : public BrowserContextKeyedService, |
15 public extensions::EventRouter::Observer { | 17 public extensions::EventRouter::Observer { |
16 public: | 18 public: |
17 static TtsExtensionLoaderChromeOs* GetInstance(Profile* profile); | 19 static TtsExtensionLoaderChromeOs* GetInstance(Profile* profile); |
18 | 20 |
19 // Returns true if the extension was not previously loaded and is now | 21 // Returns true if the extension was not previously loaded and is now |
20 // loading. This class will call | 22 // loading. This class will call |
(...skipping 21 matching lines...) Expand all Loading... |
42 | 44 |
43 Profile* profile_; | 45 Profile* profile_; |
44 TtsState tts_state_; | 46 TtsState tts_state_; |
45 | 47 |
46 friend class TtsExtensionLoaderChromeOsFactory; | 48 friend class TtsExtensionLoaderChromeOsFactory; |
47 | 49 |
48 DISALLOW_COPY_AND_ASSIGN(TtsExtensionLoaderChromeOs); | 50 DISALLOW_COPY_AND_ASSIGN(TtsExtensionLoaderChromeOs); |
49 }; | 51 }; |
50 | 52 |
51 #endif // CHROME_BROWSER_SPEECH_TTS_EXTENSION_LOADER_CHROMEOS_H_ | 53 #endif // CHROME_BROWSER_SPEECH_TTS_EXTENSION_LOADER_CHROMEOS_H_ |
OLD | NEW |