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

Side by Side Diff: chrome/browser/extensions/component_loader.h

Issue 102263005: Automatically trigger installation of high-quality speech synthesis extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years 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
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_EXTENSIONS_COMPONENT_LOADER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Loads a registered component extension. 109 // Loads a registered component extension.
110 void Load(const ComponentExtensionInfo& info); 110 void Load(const ComponentExtensionInfo& info);
111 111
112 void AddDefaultComponentExtensionsWithBackgroundPages( 112 void AddDefaultComponentExtensionsWithBackgroundPages(
113 bool skip_session_components); 113 bool skip_session_components);
114 void AddFileManagerExtension(); 114 void AddFileManagerExtension();
115 void AddHangoutServicesExtension(); 115 void AddHangoutServicesExtension();
116 void AddImageLoaderExtension(); 116 void AddImageLoaderExtension();
117 void AddBookmarksExtensions(); 117 void AddBookmarksExtensions();
118 void AddNetworkSpeechSynthesisExtension(); 118 void AddNetworkSpeechSynthesisExtension();
119 void AddChromeOsSpeechSynthesisExtension();
119 120
120 void AddWithName(int manifest_resource_id, 121 void AddWithName(int manifest_resource_id,
121 const base::FilePath& root_directory, 122 const base::FilePath& root_directory,
122 const std::string& name); 123 const std::string& name);
123 void AddChromeApp(); 124 void AddChromeApp();
124 void AddKeyboardApp(); 125 void AddKeyboardApp();
125 void AddWebStoreApp(); 126 void AddWebStoreApp();
126 127
127 // Unloads |component| from the memory. 128 // Unloads |component| from the memory.
128 void UnloadComponent(ComponentExtensionInfo* component); 129 void UnloadComponent(ComponentExtensionInfo* component);
129 130
130 PrefService* profile_prefs_; 131 PrefService* profile_prefs_;
131 PrefService* local_state_; 132 PrefService* local_state_;
132 133
133 ExtensionServiceInterface* extension_service_; 134 ExtensionServiceInterface* extension_service_;
134 135
135 // List of registered component extensions (see Manifest::Location). 136 // List of registered component extensions (see Manifest::Location).
136 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; 137 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions;
137 RegisteredComponentExtensions component_extensions_; 138 RegisteredComponentExtensions component_extensions_;
138 139
139 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NetworkSpeechEngine); 140 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NetworkSpeechEngine);
140 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NoNetworkSpeechEngineWhenOffline); 141 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NoNetworkSpeechEngineWhenOffline);
141 142
142 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); 143 DISALLOW_COPY_AND_ASSIGN(ComponentLoader);
143 }; 144 };
144 145
145 } // namespace extensions 146 } // namespace extensions
146 147
147 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ 148 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698