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_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ | 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ |
6 #define CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ | 6 #define CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Installs the extension for the given index to |profile|. | 34 // Installs the extension for the given index to |profile|. |
35 void InstallExtension(Profile* profile, int index); | 35 void InstallExtension(Profile* profile, int index); |
36 | 36 |
37 // Uninstalls the extension for the given index from |profile|. Assumes that | 37 // Uninstalls the extension for the given index from |profile|. Assumes that |
38 // it was previously installed. | 38 // it was previously installed. |
39 void UninstallExtension(Profile* profile, int index); | 39 void UninstallExtension(Profile* profile, int index); |
40 | 40 |
41 // Installs all pending synced extensions for |profile|. | 41 // Installs all pending synced extensions for |profile|. |
42 void InstallExtensionsPendingForSync(Profile* profile); | 42 void InstallExtensionsPendingForSync(Profile* profile); |
43 | 43 |
| 44 // Enables the extension for the given index on |profile|. |
| 45 void EnableExtension(Profile* profile, int index); |
| 46 |
| 47 // Disables the extension for the given index on |profile|. |
| 48 void DisableExtension(Profile* profile, int index); |
| 49 |
| 50 // Enables the extension for the given index in incognito mode on |profile|. |
| 51 void IncognitoEnableExtension(Profile* profile, int index); |
| 52 |
| 53 // Disables the extension for the given index in incognito mode on |profile|. |
| 54 void IncognitoDisableExtension(Profile* profile, int index); |
| 55 |
44 private: | 56 private: |
45 LiveSyncExtensionHelper extension_helper_; | 57 LiveSyncExtensionHelper extension_helper_; |
46 | 58 |
47 DISALLOW_COPY_AND_ASSIGN(LiveExtensionsSyncTest); | 59 DISALLOW_COPY_AND_ASSIGN(LiveExtensionsSyncTest); |
48 }; | 60 }; |
49 | 61 |
50 #endif // CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ | 62 #endif // CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_ |
OLD | NEW |