Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2203)

Side by Side Diff: chrome/browser/speech/tts_extension_loader_chromeos.h

Issue 69883007: Extract chrome.runtime API code from extensions::EventRouter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698