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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 // Runtime data: | 572 // Runtime data: |
573 | 573 |
574 // True if the background page is ready. | 574 // True if the background page is ready. |
575 bool background_page_ready_; | 575 bool background_page_ready_; |
576 | 576 |
577 // True while the extension is being upgraded. | 577 // True while the extension is being upgraded. |
578 bool being_upgraded_; | 578 bool being_upgraded_; |
579 | 579 |
580 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); | 580 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); |
581 FRIEND_TEST(TabStripModelTest, Apps); | 581 FRIEND_TEST(TabStripModelTest, Apps); |
582 FRIEND_TEST(TabStripModelTest, ToolbarVisibility); | |
583 | 582 |
584 DISALLOW_COPY_AND_ASSIGN(Extension); | 583 DISALLOW_COPY_AND_ASSIGN(Extension); |
585 }; | 584 }; |
586 | 585 |
587 typedef std::vector<Extension*> ExtensionList; | 586 typedef std::vector<Extension*> ExtensionList; |
588 | 587 |
589 // Handy struct to pass core extension info around. | 588 // Handy struct to pass core extension info around. |
590 struct ExtensionInfo { | 589 struct ExtensionInfo { |
591 ExtensionInfo(const DictionaryValue* manifest, | 590 ExtensionInfo(const DictionaryValue* manifest, |
592 const std::string& id, | 591 const std::string& id, |
(...skipping 10 matching lines...) Expand all Loading... |
603 scoped_ptr<DictionaryValue> extension_manifest; | 602 scoped_ptr<DictionaryValue> extension_manifest; |
604 std::string extension_id; | 603 std::string extension_id; |
605 FilePath extension_path; | 604 FilePath extension_path; |
606 Extension::Location extension_location; | 605 Extension::Location extension_location; |
607 | 606 |
608 private: | 607 private: |
609 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 608 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
610 }; | 609 }; |
611 | 610 |
612 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 611 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |