| 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 #include "chrome/browser/extensions/extension_function_registry.h" | 5 #include "chrome/browser/extensions/extension_function_registry.h" |
| 6 | 6 |
| 7 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 7 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
| 8 #include "chrome/browser/extensions/api/app/app_api.h" | 8 #include "chrome/browser/extensions/api/app/app_api.h" |
| 9 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" | 9 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" |
| 10 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" | 10 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 ExtensionFunctionRegistry::~ExtensionFunctionRegistry() { | 47 ExtensionFunctionRegistry::~ExtensionFunctionRegistry() { |
| 48 } | 48 } |
| 49 | 49 |
| 50 void ExtensionFunctionRegistry::ResetFunctions() { | 50 void ExtensionFunctionRegistry::ResetFunctions() { |
| 51 #if defined(ENABLE_EXTENSIONS) | 51 #if defined(ENABLE_EXTENSIONS) |
| 52 | 52 |
| 53 // Register all functions here. | 53 // Register all functions here. |
| 54 | 54 |
| 55 // Page Actions. | |
| 56 RegisterFunction<EnablePageActionsFunction>(); | |
| 57 RegisterFunction<DisablePageActionsFunction>(); | |
| 58 RegisterFunction<PageActionShowFunction>(); | |
| 59 RegisterFunction<PageActionHideFunction>(); | |
| 60 RegisterFunction<PageActionSetIconFunction>(); | |
| 61 RegisterFunction<PageActionSetTitleFunction>(); | |
| 62 RegisterFunction<PageActionSetPopupFunction>(); | |
| 63 RegisterFunction<PageActionGetTitleFunction>(); | |
| 64 RegisterFunction<PageActionGetPopupFunction>(); | |
| 65 | |
| 66 // Browser Actions. | |
| 67 RegisterFunction<extensions::BrowserActionSetIconFunction>(); | |
| 68 RegisterFunction<extensions::BrowserActionSetTitleFunction>(); | |
| 69 RegisterFunction<extensions::BrowserActionSetBadgeTextFunction>(); | |
| 70 RegisterFunction<extensions::BrowserActionSetBadgeBackgroundColorFunction>(); | |
| 71 RegisterFunction<extensions::BrowserActionSetPopupFunction>(); | |
| 72 RegisterFunction<extensions::BrowserActionGetTitleFunction>(); | |
| 73 RegisterFunction<extensions::BrowserActionGetBadgeTextFunction>(); | |
| 74 RegisterFunction<extensions::BrowserActionGetBadgeBackgroundColorFunction>(); | |
| 75 RegisterFunction<extensions::BrowserActionGetPopupFunction>(); | |
| 76 RegisterFunction<extensions::BrowserActionEnableFunction>(); | |
| 77 RegisterFunction<extensions::BrowserActionDisableFunction>(); | |
| 78 | |
| 79 // Browsing Data. | 55 // Browsing Data. |
| 80 RegisterFunction<RemoveBrowsingDataFunction>(); | 56 RegisterFunction<RemoveBrowsingDataFunction>(); |
| 81 RegisterFunction<RemoveAppCacheFunction>(); | 57 RegisterFunction<RemoveAppCacheFunction>(); |
| 82 RegisterFunction<RemoveCacheFunction>(); | 58 RegisterFunction<RemoveCacheFunction>(); |
| 83 RegisterFunction<RemoveCookiesFunction>(); | 59 RegisterFunction<RemoveCookiesFunction>(); |
| 84 RegisterFunction<RemoveDownloadsFunction>(); | 60 RegisterFunction<RemoveDownloadsFunction>(); |
| 85 RegisterFunction<RemoveFileSystemsFunction>(); | 61 RegisterFunction<RemoveFileSystemsFunction>(); |
| 86 RegisterFunction<RemoveFormDataFunction>(); | 62 RegisterFunction<RemoveFormDataFunction>(); |
| 87 RegisterFunction<RemoveHistoryFunction>(); | 63 RegisterFunction<RemoveHistoryFunction>(); |
| 88 RegisterFunction<RemoveIndexedDBFunction>(); | 64 RegisterFunction<RemoveIndexedDBFunction>(); |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 248 |
| 273 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry() | 249 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry() |
| 274 : factory_(0), histogram_value_(extensions::functions::UNKNOWN) { | 250 : factory_(0), histogram_value_(extensions::functions::UNKNOWN) { |
| 275 } | 251 } |
| 276 | 252 |
| 277 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry( | 253 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry( |
| 278 ExtensionFunctionFactory factory, | 254 ExtensionFunctionFactory factory, |
| 279 extensions::functions::HistogramValue histogram_value) | 255 extensions::functions::HistogramValue histogram_value) |
| 280 : factory_(factory), histogram_value_(histogram_value) { | 256 : factory_(factory), histogram_value_(histogram_value) { |
| 281 } | 257 } |
| OLD | NEW |