Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/process.h" 12 #include "base/process/process.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/external_protocol/external_protocol_handler.h" 15 #include "chrome/browser/external_protocol/external_protocol_handler.h"
16 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" 16 #include "chrome/browser/renderer_host/chrome_render_message_filter.h"
17 #include "chrome/common/extensions/extension_messages.h"
18 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/render_frame_host.h" 18 #include "content/public/browser/render_frame_host.h"
20 #include "content/public/browser/render_process_host.h" 19 #include "content/public/browser/render_process_host.h"
21 #include "content/public/browser/render_view_host.h" 20 #include "content/public/browser/render_view_host.h"
22 #include "content/public/browser/user_metrics.h" 21 #include "content/public/browser/user_metrics.h"
23 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
24 #include "content/public/browser/web_contents_observer.h" 23 #include "content/public/browser/web_contents_observer.h"
25 #include "content/public/common/result_codes.h" 24 #include "content/public/common/result_codes.h"
26 #include "extensions/browser/api_activity_monitor.h" 25 #include "extensions/browser/api_activity_monitor.h"
27 #include "extensions/browser/extension_function_registry.h" 26 #include "extensions/browser/extension_function_registry.h"
28 #include "extensions/browser/extension_registry.h" 27 #include "extensions/browser/extension_registry.h"
29 #include "extensions/browser/extension_system.h" 28 #include "extensions/browser/extension_system.h"
30 #include "extensions/browser/extensions_browser_client.h" 29 #include "extensions/browser/extensions_browser_client.h"
31 #include "extensions/browser/process_manager.h" 30 #include "extensions/browser/process_manager.h"
32 #include "extensions/browser/process_map.h" 31 #include "extensions/browser/process_map.h"
33 #include "extensions/browser/quota_service.h" 32 #include "extensions/browser/quota_service.h"
34 #include "extensions/common/extension_api.h" 33 #include "extensions/common/extension_api.h"
34 #include "extensions/common/extension_messages.h"
35 #include "extensions/common/extension_set.h" 35 #include "extensions/common/extension_set.h"
36 #include "ipc/ipc_message.h" 36 #include "ipc/ipc_message.h"
37 #include "ipc/ipc_message_macros.h" 37 #include "ipc/ipc_message_macros.h"
38 #include "webkit/common/resource_type.h" 38 #include "webkit/common/resource_type.h"
39 39
40 using extensions::Extension; 40 using extensions::Extension;
41 using extensions::ExtensionAPI; 41 using extensions::ExtensionAPI;
42 using extensions::ExtensionsBrowserClient; 42 using extensions::ExtensionsBrowserClient;
43 using extensions::ExtensionSystem; 43 using extensions::ExtensionSystem;
44 using extensions::Feature; 44 using extensions::Feature;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 return function; 512 return function;
513 } 513 }
514 514
515 // static 515 // static
516 void ExtensionFunctionDispatcher::SendAccessDenied( 516 void ExtensionFunctionDispatcher::SendAccessDenied(
517 const ExtensionFunction::ResponseCallback& callback) { 517 const ExtensionFunction::ResponseCallback& callback) {
518 base::ListValue empty_list; 518 base::ListValue empty_list;
519 callback.Run(ExtensionFunction::FAILED, empty_list, 519 callback.Run(ExtensionFunction::FAILED, empty_list,
520 "Access to extension API denied."); 520 "Access to extension API denied.");
521 } 521 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/web_request/web_request_api_unittest.cc ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698