| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 ExtensionAction* page_action() const { return page_action_.get(); } | 188 ExtensionAction* page_action() const { return page_action_.get(); } |
| 189 ExtensionAction* browser_action() const { return browser_action_.get(); } | 189 ExtensionAction* browser_action() const { return browser_action_.get(); } |
| 190 ExtensionActionState* browser_action_state() { | 190 ExtensionActionState* browser_action_state() { |
| 191 return browser_action_state_.get(); | 191 return browser_action_state_.get(); |
| 192 } | 192 } |
| 193 const std::vector<PrivacyBlacklistInfo>& privacy_blacklists() const { | 193 const std::vector<PrivacyBlacklistInfo>& privacy_blacklists() const { |
| 194 return privacy_blacklists_; | 194 return privacy_blacklists_; |
| 195 } | 195 } |
| 196 const std::vector<PluginInfo>& plugins() const { return plugins_; } | 196 const std::vector<PluginInfo>& plugins() const { return plugins_; } |
| 197 const GURL& background_url() const { return background_url_; } | 197 const GURL& background_url() const { return background_url_; } |
| 198 const GURL& options_url() const { return options_url_; } |
| 198 const std::vector<ToolstripInfo>& toolstrips() const { return toolstrips_; } | 199 const std::vector<ToolstripInfo>& toolstrips() const { return toolstrips_; } |
| 199 const std::vector<std::string>& api_permissions() const { | 200 const std::vector<std::string>& api_permissions() const { |
| 200 return api_permissions_; | 201 return api_permissions_; |
| 201 } | 202 } |
| 202 const HostPermissions& host_permissions() const { | 203 const HostPermissions& host_permissions() const { |
| 203 return host_permissions_; | 204 return host_permissions_; |
| 204 } | 205 } |
| 205 | 206 |
| 206 // Returns true if the extension has permission to access the host for the | 207 // Returns true if the extension has permission to access the host for the |
| 207 // specified URL. | 208 // specified URL. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // Optional list of privacy blacklistrom. | 328 // Optional list of privacy blacklistrom. |
| 328 std::vector<PrivacyBlacklistInfo> privacy_blacklists_; | 329 std::vector<PrivacyBlacklistInfo> privacy_blacklists_; |
| 329 | 330 |
| 330 // Optional list of NPAPI plugins and associated properties. | 331 // Optional list of NPAPI plugins and associated properties. |
| 331 std::vector<PluginInfo> plugins_; | 332 std::vector<PluginInfo> plugins_; |
| 332 | 333 |
| 333 // Optional URL to a master page of which a single instance should be always | 334 // Optional URL to a master page of which a single instance should be always |
| 334 // loaded in the background. | 335 // loaded in the background. |
| 335 GURL background_url_; | 336 GURL background_url_; |
| 336 | 337 |
| 338 // Optional URL to a page for setting options/preferences. |
| 339 GURL options_url_; |
| 340 |
| 337 // Optional list of toolstrips_ and associated properties. | 341 // Optional list of toolstrips_ and associated properties. |
| 338 std::vector<ToolstripInfo> toolstrips_; | 342 std::vector<ToolstripInfo> toolstrips_; |
| 339 | 343 |
| 340 // The public key ('key' in the manifest) used to sign the contents of the | 344 // The public key ('key' in the manifest) used to sign the contents of the |
| 341 // crx package ('signature' in the manifest) | 345 // crx package ('signature' in the manifest) |
| 342 std::string public_key_; | 346 std::string public_key_; |
| 343 | 347 |
| 344 // A map of resource id's to relative file paths. | 348 // A map of resource id's to relative file paths. |
| 345 scoped_ptr<DictionaryValue> theme_images_; | 349 scoped_ptr<DictionaryValue> theme_images_; |
| 346 | 350 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 386 |
| 383 // True if the background page is ready. | 387 // True if the background page is ready. |
| 384 bool background_page_ready_; | 388 bool background_page_ready_; |
| 385 | 389 |
| 386 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); | 390 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); |
| 387 | 391 |
| 388 DISALLOW_COPY_AND_ASSIGN(Extension); | 392 DISALLOW_COPY_AND_ASSIGN(Extension); |
| 389 }; | 393 }; |
| 390 | 394 |
| 391 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 395 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |