| Index: chrome/common/extensions/extension.h
|
| diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
|
| index 5e406279ac055b8acc495a33981cf1f0edfdbdb9..ea6438d5b4a4606466f595ecf79b9710ce20f0a5 100644
|
| --- a/chrome/common/extensions/extension.h
|
| +++ b/chrome/common/extensions/extension.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -24,6 +24,7 @@
|
| #include "chrome/common/extensions/command.h"
|
| #include "chrome/common/extensions/extension_constants.h"
|
| #include "chrome/common/extensions/extension_icon_set.h"
|
| +#include "chrome/common/extensions/extension_resource.h"
|
| #include "chrome/common/extensions/permissions/api_permission.h"
|
| #include "chrome/common/extensions/permissions/api_permission_set.h"
|
| #include "chrome/common/extensions/permissions/permission_message.h"
|
| @@ -35,7 +36,6 @@
|
| #include "ui/gfx/size.h"
|
|
|
| class ExtensionAction;
|
| -class ExtensionResource;
|
| class SkBitmap;
|
| class Version;
|
|
|
| @@ -294,10 +294,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
|
| // its install source should be set to GetHigherPriorityLocation(A, B).
|
| static Location GetHigherPriorityLocation(Location loc1, Location loc2);
|
|
|
| - // Max size (both dimensions) for browser and page actions.
|
| - static const int kPageActionIconMaxSize;
|
| - static const int kBrowserActionIconMaxSize;
|
| -
|
| // Valid schemes for web extent URLPatterns.
|
| static const int kValidWebExtentSchemes;
|
|
|
| @@ -418,35 +414,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
|
| std::string* output,
|
| bool is_public);
|
|
|
| - // Given an extension, icon size, and match type, read a valid icon if present
|
| - // and decode it into result. In the browser process, this will DCHECK if not
|
| - // called on the file thread. To easily load extension images on the UI
|
| - // thread, see ImageLoadingTracker.
|
| - static void DecodeIcon(const Extension* extension,
|
| - int icon_size,
|
| - ExtensionIconSet::MatchType match_type,
|
| - scoped_ptr<SkBitmap>* result);
|
| -
|
| - // Given an extension and icon size, read it if present and decode it into
|
| - // result. In the browser process, this will DCHECK if not called on the
|
| - // file thread. To easily load extension images on the UI thread, see
|
| - // ImageLoadingTracker.
|
| - static void DecodeIcon(const Extension* extension,
|
| - int icon_size,
|
| - scoped_ptr<SkBitmap>* result);
|
| -
|
| - // Given an icon_path and icon size, read it if present and decode it into
|
| - // result. In the browser process, this will DCHECK if not called on the
|
| - // file thread. To easily load extension images on the UI thread, see
|
| - // ImageLoadingTracker.
|
| - static void DecodeIconFromPath(const FilePath& icon_path,
|
| - int icon_size,
|
| - scoped_ptr<SkBitmap>* result);
|
| -
|
| - // Returns the default extension/app icon (for extensions or apps that don't
|
| - // have one).
|
| - static const gfx::ImageSkia& GetDefaultIcon(bool is_app);
|
| -
|
| // Returns the base extension url for a given |extension_id|.
|
| static GURL GetBaseURLFromExtensionId(const std::string& extension_id);
|
|
|
| @@ -526,11 +493,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
|
| // the browser might load (like themes and page action icons).
|
| std::set<FilePath> GetBrowserImages() const;
|
|
|
| - // Get an extension icon as a resource or URL.
|
| - ExtensionResource GetIconResource(
|
| - int size, ExtensionIconSet::MatchType match_type) const;
|
| - GURL GetIconURL(int size, ExtensionIconSet::MatchType match_type) const;
|
| -
|
| // Gets the fully resolved absolute launch URL.
|
| GURL GetFullLaunchURL() const;
|
|
|
| @@ -708,7 +670,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
|
| return install_warnings_;
|
| }
|
| const GURL& update_url() const { return update_url_; }
|
| - const ExtensionIconSet& icons() const { return icons_; }
|
| const extensions::Manifest* manifest() const {
|
| return manifest_.get();
|
| }
|
| @@ -858,7 +819,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
|
| bool LoadManifestVersion(string16* error);
|
| bool LoadHomepageURL(string16* error);
|
| bool LoadUpdateURL(string16* error);
|
| - bool LoadIcons(string16* error);
|
| bool LoadCommands(string16* error);
|
| bool LoadPlugins(string16* error);
|
| bool LoadNaClModules(string16* error);
|
| @@ -1018,9 +978,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
|
| // Any warnings that occurred when trying to create/parse the extension.
|
| InstallWarningVector install_warnings_;
|
|
|
| - // The icons for the extension.
|
| - ExtensionIconSet icons_;
|
| -
|
| // The base extension url for the extension.
|
| GURL extension_url_;
|
|
|
|
|