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

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

Issue 10003001: Update JSONReader to take base::StringPiece instead of std::string (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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
« no previous file with comments | « base/json/json_reader.cc ('k') | chrome/browser/plugin_finder.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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // content::NotificationObserver implementation 70 // content::NotificationObserver implementation
71 virtual void Observe(int type, 71 virtual void Observe(int type,
72 const content::NotificationSource& source, 72 const content::NotificationSource& source,
73 const content::NotificationDetails& details) OVERRIDE; 73 const content::NotificationDetails& details) OVERRIDE;
74 74
75 static void RegisterUserPrefs(PrefService* prefs); 75 static void RegisterUserPrefs(PrefService* prefs);
76 76
77 // Parse the given JSON manifest. Returns NULL if it cannot be parsed, or if 77 // Parse the given JSON manifest. Returns NULL if it cannot be parsed, or if
78 // if the result is not a DictionaryValue. 78 // if the result is not a DictionaryValue.
79 DictionaryValue* ParseManifest(const std::string& manifest_contents) const; 79 DictionaryValue* ParseManifest(const std::string& manifest_contents)
80 const;
Aaron Boodman 2012/04/15 21:04:29 no need to change this
80 81
81 // Clear the list of registered extensions. 82 // Clear the list of registered extensions.
82 void ClearAllRegistered(); 83 void ClearAllRegistered();
83 84
84 // Reloads a registered component extension. 85 // Reloads a registered component extension.
85 void Reload(const std::string& extension_id); 86 void Reload(const std::string& extension_id);
86 87
87 private: 88 private:
88 // Information about a registered component extension. 89 // Information about a registered component extension.
89 struct ComponentExtensionInfo { 90 struct ComponentExtensionInfo {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // List of registered component extensions (see Extension::Location). 123 // List of registered component extensions (see Extension::Location).
123 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; 124 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions;
124 RegisteredComponentExtensions component_extensions_; 125 RegisteredComponentExtensions component_extensions_;
125 126
126 PrefChangeRegistrar pref_change_registrar_; 127 PrefChangeRegistrar pref_change_registrar_;
127 }; 128 };
128 129
129 } // namespace extensions 130 } // namespace extensions
130 131
131 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ 132 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
OLDNEW
« no previous file with comments | « base/json/json_reader.cc ('k') | chrome/browser/plugin_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698