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

Side by Side Diff: chrome/common/extensions/extension.h

Issue 303006: Delete unused themes from disk on shutdown. (Closed)
Patch Set: Created 11 years, 2 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 | « chrome/browser/profile.cc ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COMMON_EXTENSIONS_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // so that the registry location can be overwritten during testing. 230 // so that the registry location can be overwritten during testing.
231 Location ExternalExtensionInstallType(std::string registry_path); 231 Location ExternalExtensionInstallType(std::string registry_path);
232 232
233 // Theme-related. 233 // Theme-related.
234 DictionaryValue* GetThemeImages() const { return theme_images_.get(); } 234 DictionaryValue* GetThemeImages() const { return theme_images_.get(); }
235 DictionaryValue* GetThemeColors() const { return theme_colors_.get(); } 235 DictionaryValue* GetThemeColors() const { return theme_colors_.get(); }
236 DictionaryValue* GetThemeTints() const { return theme_tints_.get(); } 236 DictionaryValue* GetThemeTints() const { return theme_tints_.get(); }
237 DictionaryValue* GetThemeDisplayProperties() const { 237 DictionaryValue* GetThemeDisplayProperties() const {
238 return theme_display_properties_.get(); 238 return theme_display_properties_.get();
239 } 239 }
240 bool IsTheme() { return is_theme_; } 240 bool IsTheme() const { return is_theme_; }
241 241
242 // Returns a list of paths (relative to the extension dir) for images that 242 // Returns a list of paths (relative to the extension dir) for images that
243 // the browser might load (like themes and page action icons). 243 // the browser might load (like themes and page action icons).
244 std::set<FilePath> GetBrowserImages(); 244 std::set<FilePath> GetBrowserImages();
245 245
246 // Returns an absolute path to the given icon inside of the extension. Returns 246 // Returns an absolute path to the given icon inside of the extension. Returns
247 // an empty FilePath if the extension does not have that icon. 247 // an empty FilePath if the extension does not have that icon.
248 ExtensionResource GetIconPath(Icons icon); 248 ExtensionResource GetIconPath(Icons icon);
249 249
250 const DictionaryValue* manifest_value() const { 250 const DictionaryValue* manifest_value() const {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 391
392 // True if the background page is ready. 392 // True if the background page is ready.
393 bool background_page_ready_; 393 bool background_page_ready_;
394 394
395 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); 395 FRIEND_TEST(ExtensionTest, LoadPageActionHelper);
396 396
397 DISALLOW_COPY_AND_ASSIGN(Extension); 397 DISALLOW_COPY_AND_ASSIGN(Extension);
398 }; 398 };
399 399
400 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 400 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698