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

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

Issue 27034009: Implement Google network speech synthesis (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert change to register_engine for now, rebase for relanding 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_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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
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 119
119 void AddWithName(int manifest_resource_id, 120 void AddWithName(int manifest_resource_id,
120 const base::FilePath& root_directory, 121 const base::FilePath& root_directory,
121 const std::string& name); 122 const std::string& name);
122 void AddChromeApp(); 123 void AddChromeApp();
123 void AddKeyboardApp(); 124 void AddKeyboardApp();
124 void AddWebStoreApp(); 125 void AddWebStoreApp();
125 126
126 // Unloads |component| from the memory. 127 // Unloads |component| from the memory.
127 void UnloadComponent(ComponentExtensionInfo* component); 128 void UnloadComponent(ComponentExtensionInfo* component);
128 129
129 PrefService* profile_prefs_; 130 PrefService* profile_prefs_;
130 PrefService* local_state_; 131 PrefService* local_state_;
131 132
132 ExtensionServiceInterface* extension_service_; 133 ExtensionServiceInterface* extension_service_;
133 134
134 // List of registered component extensions (see Manifest::Location). 135 // List of registered component extensions (see Manifest::Location).
135 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; 136 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions;
136 RegisteredComponentExtensions component_extensions_; 137 RegisteredComponentExtensions component_extensions_;
137 138
139 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NetworkSpeechEngine);
140
138 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); 141 DISALLOW_COPY_AND_ASSIGN(ComponentLoader);
139 }; 142 };
140 143
141 } // namespace extensions 144 } // namespace extensions
142 145
143 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ 146 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/system_private/system_private_api.cc ('k') | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698