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

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

Issue 184043024: Limit scope of settings API configuration and proxy permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move incognito permission test from ChromeExtensionsBrowserClient to ExtensionPrefs Created 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 EXTENSIONS_COMMON_EXTENSION_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_
6 #define EXTENSIONS_COMMON_EXTENSION_H_ 6 #define EXTENSIONS_COMMON_EXTENSION_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 318 }
319 bool is_ephemeral() const { return (creation_flags_ & IS_EPHEMERAL) != 0; } 319 bool is_ephemeral() const { return (creation_flags_ & IS_EPHEMERAL) != 0; }
320 320
321 // App-related. 321 // App-related.
322 bool is_app() const; 322 bool is_app() const;
323 bool is_platform_app() const; 323 bool is_platform_app() const;
324 bool is_hosted_app() const; 324 bool is_hosted_app() const;
325 bool is_legacy_packaged_app() const; 325 bool is_legacy_packaged_app() const;
326 bool is_extension() const; 326 bool is_extension() const;
327 bool can_be_incognito_enabled() const; 327 bool can_be_incognito_enabled() const;
328 bool force_incognito_enabled() const;
329 328
330 void AddWebExtentPattern(const URLPattern& pattern); 329 void AddWebExtentPattern(const URLPattern& pattern);
331 const URLPatternSet& web_extent() const { return extent_; } 330 const URLPatternSet& web_extent() const { return extent_; }
332 331
333 // Theme-related. 332 // Theme-related.
334 bool is_theme() const; 333 bool is_theme() const;
335 334
336 private: 335 private:
337 friend class base::RefCountedThreadSafe<Extension>; 336 friend class base::RefCountedThreadSafe<Extension>;
338 337
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 531
533 UpdatedExtensionPermissionsInfo( 532 UpdatedExtensionPermissionsInfo(
534 const Extension* extension, 533 const Extension* extension,
535 const PermissionSet* permissions, 534 const PermissionSet* permissions,
536 Reason reason); 535 Reason reason);
537 }; 536 };
538 537
539 } // namespace extensions 538 } // namespace extensions
540 539
541 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 540 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698