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

Unified Diff: chrome/common/extensions/extension.h

Issue 12316077: Move the parsing of app.launch related keys out of Extension class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 23a292b65d48f645565ca1cc2b141ca27092e3bc..2a8edfdc979a662a9baed1859323ca5db1e5b29d 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -14,7 +14,6 @@
#include <vector>
#include "base/file_path.h"
-#include "base/gtest_prod_util.h"
#include "base/hash_tables.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
@@ -48,8 +47,6 @@ namespace gfx {
class ImageSkia;
}
-FORWARD_DECLARE_TEST(TabStripModelTest, Apps);
-
namespace extensions {
struct ActionInfo;
class APIPermissionSet;
@@ -399,9 +396,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
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;
-
// Returns true if this extension can execute script on a page. If a
// UserScript object is passed, permission to run that specific script is
// checked (using its matches list). Otherwise, permission to execute script
@@ -565,14 +559,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
bool is_storage_isolated() const { return is_storage_isolated_; }
bool can_be_incognito_enabled() const;
void AddWebExtentPattern(const URLPattern& pattern);
+ void ClearWebExtentPatterns();
const URLPatternSet& web_extent() const { return extent_; }
- const std::string& launch_local_path() const { return launch_local_path_; }
- const std::string& launch_web_url() const { return launch_web_url_; }
- extension_misc::LaunchContainer launch_container() const {
- return launch_container_;
- }
- int launch_width() const { return launch_width_; }
- int launch_height() const { return launch_height_; }
// Theme-related.
bool is_theme() const;
@@ -654,8 +642,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
const char* list_error,
const char* value_error,
string16* error);
- bool LoadLaunchContainer(string16* error);
- bool LoadLaunchURL(string16* error);
bool LoadSharedFeatures(string16* error);
bool LoadDescription(string16* error);
@@ -708,10 +694,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// an extension that has a browser action and a page action.
bool HasMultipleUISurfaces() const;
- // Updates the launch URL and extents for the extension using the given
- // |override_url|.
- void OverrideLaunchUrl(const GURL& override_url);
-
// Custom checks for the experimental permission that can't be expressed in
// _permission_features.json.
bool CanSpecifyExperimentalPermission() const;
@@ -858,25 +840,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// Whether this extension requests isolated storage.
bool is_storage_isolated_;
- // The local path inside the extension to use with the launcher.
- std::string launch_local_path_;
-
- // A web url to use with the launcher. Note that this might be relative or
- // absolute. If relative, it is relative to web_origin.
- std::string launch_web_url_;
-
- // The window type that an app's manifest specifies to launch into.
- // This is not always the window type an app will open into, because
- // users can override the way each app launches. See
- // ExtensionPrefs::GetLaunchContainer(), which looks at a per-app pref
- // to decide what container an app will launch in.
- extension_misc::LaunchContainer launch_container_;
-
- // The default size of the container when launching. Only respected for
- // containers like panels and windows.
- int launch_width_;
- int launch_height_;
-
// Should this app be shown in the app launcher.
bool display_in_launcher_;
@@ -891,8 +854,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// The flags that were passed to InitFromValue.
int creation_flags_;
- FRIEND_TEST_ALL_PREFIXES(::TabStripModelTest, Apps);
-
DISALLOW_COPY_AND_ASSIGN(Extension);
};

Powered by Google App Engine
This is Rietveld 408576698