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

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

Issue 1351223003: Allow extensions to specify that they are not allowed in incognito mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add expectations for IncognitoInfo to test Created 5 years, 3 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
« no previous file with comments | « extensions/browser/extension_util.cc ('k') | extensions/common/extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 // Type-related queries. 352 // Type-related queries.
353 bool is_app() const; 353 bool is_app() const;
354 bool is_platform_app() const; 354 bool is_platform_app() const;
355 bool is_hosted_app() const; 355 bool is_hosted_app() const;
356 bool is_legacy_packaged_app() const; 356 bool is_legacy_packaged_app() const;
357 bool is_extension() const; 357 bool is_extension() const;
358 bool is_shared_module() const; 358 bool is_shared_module() const;
359 bool is_theme() const; 359 bool is_theme() const;
360 360
361 bool can_be_incognito_enabled() const;
362
363 void AddWebExtentPattern(const URLPattern& pattern); 361 void AddWebExtentPattern(const URLPattern& pattern);
364 const URLPatternSet& web_extent() const { return extent_; } 362 const URLPatternSet& web_extent() const { return extent_; }
365 363
366 private: 364 private:
367 friend class base::RefCountedThreadSafe<Extension>; 365 friend class base::RefCountedThreadSafe<Extension>;
368 366
369 // Chooses the extension ID for an extension based on a variety of criteria. 367 // Chooses the extension ID for an extension based on a variety of criteria.
370 // The chosen ID will be set in |manifest|. 368 // The chosen ID will be set in |manifest|.
371 static bool InitExtensionID(extensions::Manifest* manifest, 369 static bool InitExtensionID(extensions::Manifest* manifest,
372 const base::FilePath& path, 370 const base::FilePath& path,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 578
581 UpdatedExtensionPermissionsInfo( 579 UpdatedExtensionPermissionsInfo(
582 const Extension* extension, 580 const Extension* extension,
583 const PermissionSet* permissions, 581 const PermissionSet* permissions,
584 Reason reason); 582 Reason reason);
585 }; 583 };
586 584
587 } // namespace extensions 585 } // namespace extensions
588 586
589 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 587 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_util.cc ('k') | extensions/common/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698