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

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

Issue 3173018: Merge 55103 - Refactored extension privilege enumeration and implemented URLP... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 const URLPatternList& host_permissions() const { 268 const URLPatternList& host_permissions() const {
269 return host_permissions_; 269 return host_permissions_;
270 } 270 }
271 271
272 // Returns true if the extension has the specified API permission. 272 // Returns true if the extension has the specified API permission.
273 bool HasApiPermission(const std::string& permission) const { 273 bool HasApiPermission(const std::string& permission) const {
274 return std::find(api_permissions_.begin(), api_permissions_.end(), 274 return std::find(api_permissions_.begin(), api_permissions_.end(),
275 permission) != api_permissions_.end(); 275 permission) != api_permissions_.end();
276 } 276 }
277 277

error: old chunk mismatch

OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698