| OLD | NEW |
| 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_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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 // need to be exposed in the UI. Set |is_from_sync| to true if the | 328 // need to be exposed in the UI. Set |is_from_sync| to true if the |
| 329 // install was initiated via sync. | 329 // install was initiated via sync. |
| 330 void PromoteEphemeralApp( | 330 void PromoteEphemeralApp( |
| 331 const extensions::Extension* extension, bool is_from_sync); | 331 const extensions::Extension* extension, bool is_from_sync); |
| 332 | 332 |
| 333 // ExtensionHost of background page calls this method right after its render | 333 // ExtensionHost of background page calls this method right after its render |
| 334 // view has been created. | 334 // view has been created. |
| 335 void DidCreateRenderViewForBackgroundPage(extensions::ExtensionHost* host); | 335 void DidCreateRenderViewForBackgroundPage(extensions::ExtensionHost* host); |
| 336 | 336 |
| 337 // Changes sequenced task runner for crx installation tasks to |task_runner|. | 337 // Changes sequenced task runner for crx installation tasks to |task_runner|. |
| 338 void SetFileTaskRunnerForTesting(base::SequencedTaskRunner* task_runner); | 338 void SetFileTaskRunnerForTesting( |
| 339 const scoped_refptr<base::SequencedTaskRunner>& task_runner); |
| 339 | 340 |
| 340 // Postpone installations so that we don't have to worry about race | 341 // Postpone installations so that we don't have to worry about race |
| 341 // conditions. | 342 // conditions. |
| 342 void OnGarbageCollectIsolatedStorageStart(); | 343 void OnGarbageCollectIsolatedStorageStart(); |
| 343 | 344 |
| 344 // Restart any extension installs which were delayed for isolated storage | 345 // Restart any extension installs which were delayed for isolated storage |
| 345 // garbage collection. | 346 // garbage collection. |
| 346 void OnGarbageCollectIsolatedStorageFinished(); | 347 void OnGarbageCollectIsolatedStorageFinished(); |
| 347 | 348 |
| 348 // Record a histogram using the PermissionMessage enum values for each | 349 // Record a histogram using the PermissionMessage enum values for each |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 GreylistedExtensionDisabled); | 727 GreylistedExtensionDisabled); |
| 727 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 728 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 728 GreylistDontEnableManuallyDisabled); | 729 GreylistDontEnableManuallyDisabled); |
| 729 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 730 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 730 GreylistUnknownDontChange); | 731 GreylistUnknownDontChange); |
| 731 | 732 |
| 732 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 733 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 733 }; | 734 }; |
| 734 | 735 |
| 735 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 736 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |