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

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

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 years, 10 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
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_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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 bool is_theme() const { return manifest()->IsTheme(); } 591 bool is_theme() const { return manifest()->IsTheme(); }
592 base::DictionaryValue* GetThemeImages() const { return theme_images_.get(); } 592 base::DictionaryValue* GetThemeImages() const { return theme_images_.get(); }
593 base::DictionaryValue* GetThemeColors() const {return theme_colors_.get(); } 593 base::DictionaryValue* GetThemeColors() const {return theme_colors_.get(); }
594 base::DictionaryValue* GetThemeTints() const { return theme_tints_.get(); } 594 base::DictionaryValue* GetThemeTints() const { return theme_tints_.get(); }
595 base::DictionaryValue* GetThemeDisplayProperties() const { 595 base::DictionaryValue* GetThemeDisplayProperties() const {
596 return theme_display_properties_.get(); 596 return theme_display_properties_.get();
597 } 597 }
598 598
599 GURL GetBackgroundURL() const; 599 GURL GetBackgroundURL() const;
600 600
601 // Returns true if this extension should be run in its own user data
602 // directory.
jeremy 2012/02/12 09:40:28 Can you expand the comment as to when this is the
603 bool RequiresSeparateUserDataDirectory() const;
604
601 private: 605 private:
602 friend class base::RefCountedThreadSafe<Extension>; 606 friend class base::RefCountedThreadSafe<Extension>;
603 607
604 // We keep a cache of images loaded from extension resources based on their 608 // We keep a cache of images loaded from extension resources based on their
605 // path and a string representation of a size that may have been used to 609 // path and a string representation of a size that may have been used to
606 // scale it (or the empty string if the image is at its original size). 610 // scale it (or the empty string if the image is at its original size).
607 typedef std::pair<FilePath, std::string> ImageCacheKey; 611 typedef std::pair<FilePath, std::string> ImageCacheKey;
608 typedef std::map<ImageCacheKey, SkBitmap> ImageCache; 612 typedef std::map<ImageCacheKey, SkBitmap> ImageCache;
609 613
610 class RuntimeData { 614 class RuntimeData {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 // only contain the removed permissions. 961 // only contain the removed permissions.
958 const ExtensionPermissionSet* permissions; 962 const ExtensionPermissionSet* permissions;
959 963
960 UpdatedExtensionPermissionsInfo( 964 UpdatedExtensionPermissionsInfo(
961 const Extension* extension, 965 const Extension* extension,
962 const ExtensionPermissionSet* permissions, 966 const ExtensionPermissionSet* permissions,
963 Reason reason); 967 Reason reason);
964 }; 968 };
965 969
966 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 970 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698