Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

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

Issue 10332235: Make the page action space show extensions with active content scripts or (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops iterator Created 8 years, 7 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/chrome_browser_extensions.gypi ('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')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // Returns true if the extension should be synced. 527 // Returns true if the extension should be synced.
528 bool IsSyncable() const; 528 bool IsSyncable() const;
529 529
530 // Returns true if the extension should be displayed in the launcher. 530 // Returns true if the extension should be displayed in the launcher.
531 bool ShouldDisplayInLauncher() const; 531 bool ShouldDisplayInLauncher() const;
532 532
533 // Returns true if the extension should be displayed in the extension 533 // Returns true if the extension should be displayed in the extension
534 // settings page (i.e. chrome://extensions). 534 // settings page (i.e. chrome://extensions).
535 bool ShouldDisplayInExtensionSettings() const; 535 bool ShouldDisplayInExtensionSettings() const;
536 536
537 // Returns true if the extension has a content script declared at |url|.
538 bool HasContentScriptAtURL(const GURL& url) const;
539
537 // Accessors: 540 // Accessors:
538 541
539 const FilePath& path() const { return path_; } 542 const FilePath& path() const { return path_; }
540 const GURL& url() const { return extension_url_; } 543 const GURL& url() const { return extension_url_; }
541 Location location() const; 544 Location location() const;
542 const std::string& id() const; 545 const std::string& id() const;
543 const Version* version() const { return version_.get(); } 546 const Version* version() const { return version_.get(); }
544 const std::string VersionString() const; 547 const std::string VersionString() const;
545 const std::string& name() const { return name_; } 548 const std::string& name() const { return name_; }
546 const std::string& non_localized_name() const { return non_localized_name_; } 549 const std::string& non_localized_name() const { return non_localized_name_; }
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 // only contain the removed permissions. 1118 // only contain the removed permissions.
1116 const ExtensionPermissionSet* permissions; 1119 const ExtensionPermissionSet* permissions;
1117 1120
1118 UpdatedExtensionPermissionsInfo( 1121 UpdatedExtensionPermissionsInfo(
1119 const Extension* extension, 1122 const Extension* extension,
1120 const ExtensionPermissionSet* permissions, 1123 const ExtensionPermissionSet* permissions,
1121 Reason reason); 1124 Reason reason);
1122 }; 1125 };
1123 1126
1124 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1127 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698