| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 static const char* kLocalExtensionSettingsDirectoryName; | 164 static const char* kLocalExtensionSettingsDirectoryName; |
| 165 | 165 |
| 166 // The name of the directory inside the profile where per-app synced settings | 166 // The name of the directory inside the profile where per-app synced settings |
| 167 // are stored. | 167 // are stored. |
| 168 static const char* kSyncAppSettingsDirectoryName; | 168 static const char* kSyncAppSettingsDirectoryName; |
| 169 | 169 |
| 170 // The name of the directory inside the profile where per-extension synced | 170 // The name of the directory inside the profile where per-extension synced |
| 171 // settings are stored. | 171 // settings are stored. |
| 172 static const char* kSyncExtensionSettingsDirectoryName; | 172 static const char* kSyncExtensionSettingsDirectoryName; |
| 173 | 173 |
| 174 // The name of the database inside the profile where chrome-internal |
| 175 // extension state resides. |
| 176 static const char* kStateStoreName; |
| 177 |
| 174 // Returns the Extension of hosted or packaged apps, NULL otherwise. | 178 // Returns the Extension of hosted or packaged apps, NULL otherwise. |
| 175 const extensions::Extension* GetInstalledApp(const GURL& url); | 179 const extensions::Extension* GetInstalledApp(const GURL& url); |
| 176 | 180 |
| 177 // Returns whether the URL is from either a hosted or packaged app. | 181 // Returns whether the URL is from either a hosted or packaged app. |
| 178 bool IsInstalledApp(const GURL& url); | 182 bool IsInstalledApp(const GURL& url); |
| 179 | 183 |
| 180 // Associates a renderer process with the given installed app. | 184 // Associates a renderer process with the given installed app. |
| 181 void SetInstalledAppForRenderer(int renderer_child_id, | 185 void SetInstalledAppForRenderer(int renderer_child_id, |
| 182 const extensions::Extension* app); | 186 const extensions::Extension* app); |
| 183 | 187 |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 scoped_ptr<ExtensionGlobalError> extension_global_error_; | 851 scoped_ptr<ExtensionGlobalError> extension_global_error_; |
| 848 | 852 |
| 849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 850 InstallAppsWithUnlimtedStorage); | 854 InstallAppsWithUnlimtedStorage); |
| 851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 855 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 852 InstallAppsAndCheckStorageProtection); | 856 InstallAppsAndCheckStorageProtection); |
| 853 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 857 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 854 }; | 858 }; |
| 855 | 859 |
| 856 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 860 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |