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

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

Issue 126513005: kiosk: Load file manager in kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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
« no previous file with comments | « no previous file | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Call this during test setup to load component extensions that have 75 // Call this during test setup to load component extensions that have
76 // background pages for testing, which could otherwise interfere with tests. 76 // background pages for testing, which could otherwise interfere with tests.
77 static void EnableBackgroundExtensionsForTesting(); 77 static void EnableBackgroundExtensionsForTesting();
78 78
79 // Adds the default component extensions. If |skip_session_components| 79 // Adds the default component extensions. If |skip_session_components|
80 // the loader will skip loading component extensions that weren't supposed to 80 // the loader will skip loading component extensions that weren't supposed to
81 // be loaded unless we are in signed user session (ChromeOS). For all other 81 // be loaded unless we are in signed user session (ChromeOS). For all other
82 // platforms this |skip_session_components| is expected to be unset. 82 // platforms this |skip_session_components| is expected to be unset.
83 void AddDefaultComponentExtensions(bool skip_session_components); 83 void AddDefaultComponentExtensions(bool skip_session_components);
84 84
85 // Similar to above but adds the default component extensions for kiosk mode.
86 void AddDefaultComponentExtensionsForKioskMode(bool skip_session_components);
87
85 // Parse the given JSON manifest. Returns NULL if it cannot be parsed, or if 88 // Parse the given JSON manifest. Returns NULL if it cannot be parsed, or if
86 // if the result is not a DictionaryValue. 89 // if the result is not a DictionaryValue.
87 base::DictionaryValue* ParseManifest( 90 base::DictionaryValue* ParseManifest(
88 const std::string& manifest_contents) const; 91 const std::string& manifest_contents) const;
89 92
90 // Clear the list of registered extensions. 93 // Clear the list of registered extensions.
91 void ClearAllRegistered(); 94 void ClearAllRegistered();
92 95
93 // Reloads a registered component extension. 96 // Reloads a registered component extension.
94 void Reload(const std::string& extension_id); 97 void Reload(const std::string& extension_id);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 151
149 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NetworkSpeechEngine); 152 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NetworkSpeechEngine);
150 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NoNetworkSpeechEngineWhenOffline); 153 FRIEND_TEST_ALL_PREFIXES(TtsApiTest, NoNetworkSpeechEngineWhenOffline);
151 154
152 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); 155 DISALLOW_COPY_AND_ASSIGN(ComponentLoader);
153 }; 156 };
154 157
155 } // namespace extensions 158 } // namespace extensions
156 159
157 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ 160 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698