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

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

Issue 660113: Reset the default quota limit for extensions to 5MB, but add a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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) 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 #include "chrome/common/extensions/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 }; 111 };
112 112
113 const int Extension::kPageActionIconMaxSize = 19; 113 const int Extension::kPageActionIconMaxSize = 19;
114 const int Extension::kBrowserActionIconMaxSize = 19; 114 const int Extension::kBrowserActionIconMaxSize = 19;
115 115
116 const char* Extension::kTabPermission = "tabs"; 116 const char* Extension::kTabPermission = "tabs";
117 const char* Extension::kBookmarkPermission = "bookmarks"; 117 const char* Extension::kBookmarkPermission = "bookmarks";
118 const char* Extension::kNotificationPermission = "notifications"; 118 const char* Extension::kNotificationPermission = "notifications";
119 const char* Extension::kExperimentalPermission = "experimental"; 119 const char* Extension::kExperimentalPermission = "experimental";
120 const char* Extension::kIncognitoPermission = "incognito"; 120 const char* Extension::kIncognitoPermission = "incognito";
121 const char* Extension::kUnlimitedStoragePermission = "unlimited_storage";
121 122
122 const char* Extension::kPermissionNames[] = { 123 const char* Extension::kPermissionNames[] = {
123 Extension::kTabPermission, 124 Extension::kTabPermission,
124 Extension::kBookmarkPermission, 125 Extension::kBookmarkPermission,
125 Extension::kNotificationPermission, 126 Extension::kNotificationPermission,
126 Extension::kExperimentalPermission, 127 Extension::kExperimentalPermission,
127 Extension::kIncognitoPermission 128 Extension::kIncognitoPermission,
129 Extension::kUnlimitedStoragePermission
128 }; 130 };
129 const size_t Extension::kNumPermissions = 131 const size_t Extension::kNumPermissions =
130 arraysize(Extension::kPermissionNames); 132 arraysize(Extension::kPermissionNames);
131 133
132 Extension::~Extension() { 134 Extension::~Extension() {
133 } 135 }
134 136
135 const std::string Extension::VersionString() const { 137 const std::string Extension::VersionString() const {
136 return version_->GetString(); 138 return version_->GetString();
137 } 139 }
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 UserScript::PatternList::const_iterator pattern = 1435 UserScript::PatternList::const_iterator pattern =
1434 content_script->url_patterns().begin(); 1436 content_script->url_patterns().begin();
1435 for (; pattern != content_script->url_patterns().end(); ++pattern) { 1437 for (; pattern != content_script->url_patterns().end(); ++pattern) {
1436 if (pattern->match_subdomains() && pattern->host().empty()) 1438 if (pattern->match_subdomains() && pattern->host().empty())
1437 return true; 1439 return true;
1438 } 1440 }
1439 } 1441 }
1440 1442
1441 return false; 1443 return false;
1442 } 1444 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.h ('k') | chrome/test/data/extensions/storage_quota/limited_quota/1.0/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698