OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 return manifest_value_.get(); | 320 return manifest_value_.get(); |
321 } | 321 } |
322 | 322 |
323 const std::string default_locale() const { return default_locale_; } | 323 const std::string default_locale() const { return default_locale_; } |
324 | 324 |
325 // Chrome URL overrides (see ExtensionOverrideUI). | 325 // Chrome URL overrides (see ExtensionOverrideUI). |
326 const URLOverrideMap& GetChromeURLOverrides() const { | 326 const URLOverrideMap& GetChromeURLOverrides() const { |
327 return chrome_url_overrides_; | 327 return chrome_url_overrides_; |
328 } | 328 } |
329 | 329 |
| 330 const std::string omnibox_keyword() const { return omnibox_keyword_; } |
| 331 |
330 bool web_content_enabled() const { return web_content_enabled_; } | 332 bool web_content_enabled() const { return web_content_enabled_; } |
331 const ExtensionExtent& web_extent() const { return web_extent_; } | 333 const ExtensionExtent& web_extent() const { return web_extent_; } |
332 | 334 |
333 const std::string& launch_local_path() const { return launch_local_path_; } | 335 const std::string& launch_local_path() const { return launch_local_path_; } |
334 const std::string& launch_web_url() const { return launch_web_url_; } | 336 const std::string& launch_web_url() const { return launch_web_url_; } |
335 LaunchContainer launch_container() const { return launch_container_; } | 337 LaunchContainer launch_container() const { return launch_container_; } |
336 bool launch_fullscreen() const { return launch_fullscreen_; } | 338 bool launch_fullscreen() const { return launch_fullscreen_; } |
337 | 339 |
338 // Gets the fully resolved absolute launch URL. | 340 // Gets the fully resolved absolute launch URL. |
339 GURL GetFullLaunchURL() const; | 341 GURL GetFullLaunchURL() const; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 // The type of container to launch into. | 523 // The type of container to launch into. |
522 LaunchContainer launch_container_; | 524 LaunchContainer launch_container_; |
523 | 525 |
524 // Launch full screen by default. | 526 // Launch full screen by default. |
525 bool launch_fullscreen_; | 527 bool launch_fullscreen_; |
526 | 528 |
527 // Cached images for this extension. This maps from the relative_path of the | 529 // Cached images for this extension. This maps from the relative_path of the |
528 // resource to the cached image. | 530 // resource to the cached image. |
529 ImageCache image_cache_; | 531 ImageCache image_cache_; |
530 | 532 |
| 533 // The omnibox keyword for this extension, or empty if there is none. |
| 534 std::string omnibox_keyword_; |
| 535 |
531 // Runtime data: | 536 // Runtime data: |
532 | 537 |
533 // True if the background page is ready. | 538 // True if the background page is ready. |
534 bool background_page_ready_; | 539 bool background_page_ready_; |
535 | 540 |
536 // True while the extension is being upgraded. | 541 // True while the extension is being upgraded. |
537 bool being_upgraded_; | 542 bool being_upgraded_; |
538 | 543 |
539 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); | 544 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); |
540 FRIEND_TEST(TabStripModelTest, Apps); | 545 FRIEND_TEST(TabStripModelTest, Apps); |
(...skipping 20 matching lines...) Expand all Loading... |
561 scoped_ptr<DictionaryValue> extension_manifest; | 566 scoped_ptr<DictionaryValue> extension_manifest; |
562 std::string extension_id; | 567 std::string extension_id; |
563 FilePath extension_path; | 568 FilePath extension_path; |
564 Extension::Location extension_location; | 569 Extension::Location extension_location; |
565 | 570 |
566 private: | 571 private: |
567 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 572 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
568 }; | 573 }; |
569 | 574 |
570 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 575 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |