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

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

Issue 10264006: Clean up comments from r134097. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 const std::string& non_localized_name() const { return non_localized_name_; } 570 const std::string& non_localized_name() const { return non_localized_name_; }
571 const std::string public_key() const { return public_key_; } 571 const std::string public_key() const { return public_key_; }
572 const std::string& description() const { return description_; } 572 const std::string& description() const { return description_; }
573 int manifest_version() const { return manifest_version_; } 573 int manifest_version() const { return manifest_version_; }
574 bool converted_from_user_script() const { 574 bool converted_from_user_script() const {
575 return converted_from_user_script_; 575 return converted_from_user_script_;
576 } 576 }
577 const UserScriptList& content_scripts() const { return content_scripts_; } 577 const UserScriptList& content_scripts() const { return content_scripts_; }
578 ExtensionAction* page_action() const { return page_action_.get(); } 578 ExtensionAction* page_action() const { return page_action_.get(); }
579 ExtensionAction* browser_action() const { return browser_action_.get(); } 579 ExtensionAction* browser_action() const { return browser_action_.get(); }
580 ExtensionAction::Type extension_action_api_type() const { 580 ExtensionAction::Type declared_action_type() const {
581 return extension_action_api_type_; 581 return declared_action_type_;
582 } 582 }
583 const FileBrowserHandlerList* file_browser_handlers() const { 583 const FileBrowserHandlerList* file_browser_handlers() const {
584 return file_browser_handlers_.get(); 584 return file_browser_handlers_.get();
585 } 585 }
586 const std::vector<PluginInfo>& plugins() const { return plugins_; } 586 const std::vector<PluginInfo>& plugins() const { return plugins_; }
587 const std::vector<NaClModuleInfo>& nacl_modules() const { 587 const std::vector<NaClModuleInfo>& nacl_modules() const {
588 return nacl_modules_; 588 return nacl_modules_;
589 } 589 }
590 const std::vector<InputComponentInfo>& input_components() const { 590 const std::vector<InputComponentInfo>& input_components() const {
591 return input_components_; 591 return input_components_;
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 925
926 // Paths to the content scripts the extension contains. 926 // Paths to the content scripts the extension contains.
927 UserScriptList content_scripts_; 927 UserScriptList content_scripts_;
928 928
929 // The extension's page action, if any. 929 // The extension's page action, if any.
930 scoped_ptr<ExtensionAction> page_action_; 930 scoped_ptr<ExtensionAction> page_action_;
931 931
932 // The extension's browser action, if any. 932 // The extension's browser action, if any.
933 scoped_ptr<ExtensionAction> browser_action_; 933 scoped_ptr<ExtensionAction> browser_action_;
934 934
935 // The "API type" of whichever extension action (|page_action_| or 935 // Indicates the type of action (browser or page) that the extension declared
936 // |browser_action_|) refers to. This flag is needed by code which must deal 936 // in its manifest. This doesn't imply any value for page_action or
937 // with browser actions that were automatically converted from page actions, 937 // browser_action, since page actions may be turned into browser actions and
938 // since the extensions will still call the pageAction APIs. 938 // browser actions may be generated without any action declared.
939 ExtensionAction::Type extension_action_api_type_; 939 ExtensionAction::Type declared_action_type_;
koz (OOO until 15th September) 2012/04/30 05:23:18 Much nicer, cheers.
940 940
941 // The extension's file browser actions, if any. 941 // The extension's file browser actions, if any.
942 scoped_ptr<FileBrowserHandlerList> file_browser_handlers_; 942 scoped_ptr<FileBrowserHandlerList> file_browser_handlers_;
943 943
944 // Optional list of NPAPI plugins and associated properties. 944 // Optional list of NPAPI plugins and associated properties.
945 std::vector<PluginInfo> plugins_; 945 std::vector<PluginInfo> plugins_;
946 946
947 // Optional list of NaCl modules and associated properties. 947 // Optional list of NaCl modules and associated properties.
948 std::vector<NaClModuleInfo> nacl_modules_; 948 std::vector<NaClModuleInfo> nacl_modules_;
949 949
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 // only contain the removed permissions. 1123 // only contain the removed permissions.
1124 const ExtensionPermissionSet* permissions; 1124 const ExtensionPermissionSet* permissions;
1125 1125
1126 UpdatedExtensionPermissionsInfo( 1126 UpdatedExtensionPermissionsInfo(
1127 const Extension* extension, 1127 const Extension* extension,
1128 const ExtensionPermissionSet* permissions, 1128 const ExtensionPermissionSet* permissions,
1129 Reason reason); 1129 Reason reason);
1130 }; 1130 };
1131 1131
1132 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1132 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698