| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 bool extensions_enabled() { return extensions_enabled_; } | 370 bool extensions_enabled() { return extensions_enabled_; } |
| 371 | 371 |
| 372 void set_show_extensions_prompts(bool enabled) { | 372 void set_show_extensions_prompts(bool enabled) { |
| 373 show_extensions_prompts_ = enabled; | 373 show_extensions_prompts_ = enabled; |
| 374 } | 374 } |
| 375 | 375 |
| 376 bool show_extensions_prompts() { | 376 bool show_extensions_prompts() { |
| 377 return show_extensions_prompts_; | 377 return show_extensions_prompts_; |
| 378 } | 378 } |
| 379 | 379 |
| 380 Profile* profile() { return profile_; } | 380 virtual Profile* profile(); |
| 381 | 381 |
| 382 // Profile calls this when it is being destroyed so that we know not to call | 382 // Profile calls this when it is being destroyed so that we know not to call |
| 383 // it. | 383 // it. |
| 384 void DestroyingProfile(); | 384 void DestroyingProfile(); |
| 385 | 385 |
| 386 virtual ExtensionPrefs* extension_prefs(); | 386 virtual ExtensionPrefs* extension_prefs(); |
| 387 | 387 |
| 388 // Whether the extension service is ready. | 388 // Whether the extension service is ready. |
| 389 // TODO(skerner): Get rid of this method. crbug.com/63756 | 389 // TODO(skerner): Get rid of this method. crbug.com/63756 |
| 390 bool is_ready() { return ready_; } | 390 bool is_ready() { return ready_; } |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 631 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 632 UpdatePendingExtensionAlreadyInstalled); | 632 UpdatePendingExtensionAlreadyInstalled); |
| 633 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 633 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 634 InstallAppsWithUnlimtedStorage); | 634 InstallAppsWithUnlimtedStorage); |
| 635 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 635 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 636 InstallAppsAndCheckStorageProtection); | 636 InstallAppsAndCheckStorageProtection); |
| 637 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 637 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 638 }; | 638 }; |
| 639 | 639 |
| 640 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 640 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |