| 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_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/json/json_string_value_serializer.h" | 8 #include "base/json/json_string_value_serializer.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/process.h" | 12 #include "base/process/process.h" |
| 13 #include "base/process_util.h" | |
| 14 #include "base/values.h" | 13 #include "base/values.h" |
| 15 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 16 #include "chrome/browser/extensions/activity_log/activity_log.h" | 15 #include "chrome/browser/extensions/activity_log/activity_log.h" |
| 17 #include "chrome/browser/extensions/activity_log/blocked_actions.h" | 16 #include "chrome/browser/extensions/activity_log/blocked_actions.h" |
| 18 #include "chrome/browser/extensions/extension_function_registry.h" | 17 #include "chrome/browser/extensions/extension_function_registry.h" |
| 19 #include "chrome/browser/extensions/extension_service.h" | 18 #include "chrome/browser/extensions/extension_service.h" |
| 20 #include "chrome/browser/extensions/extension_system.h" | 19 #include "chrome/browser/extensions/extension_system.h" |
| 21 #include "chrome/browser/extensions/extension_web_ui.h" | 20 #include "chrome/browser/extensions/extension_web_ui.h" |
| 22 #include "chrome/browser/extensions/extensions_quota_service.h" | 21 #include "chrome/browser/extensions/extensions_quota_service.h" |
| 23 #include "chrome/browser/extensions/process_map.h" | 22 #include "chrome/browser/extensions/process_map.h" |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 return function; | 532 return function; |
| 534 } | 533 } |
| 535 | 534 |
| 536 // static | 535 // static |
| 537 void ExtensionFunctionDispatcher::SendAccessDenied( | 536 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 538 const ExtensionFunction::ResponseCallback& callback) { | 537 const ExtensionFunction::ResponseCallback& callback) { |
| 539 ListValue empty_list; | 538 ListValue empty_list; |
| 540 callback.Run(ExtensionFunction::FAILED, empty_list, | 539 callback.Run(ExtensionFunction::FAILED, empty_list, |
| 541 "Access to extension API denied."); | 540 "Access to extension API denied."); |
| 542 } | 541 } |
| OLD | NEW |