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

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

Issue 1151523009: Forward accessibility events to the automation extension process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step1
Patch Set: Handle case where RenderThread destroys AutomationMessageFilter first Created 5 years, 6 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
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/extension_function_dispatcher.h" 5 #include "extensions/browser/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"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 function->set_source_url(params.source_url); 474 function->set_source_url(params.source_url);
475 function->set_request_id(params.request_id); 475 function->set_request_id(params.request_id);
476 function->set_has_callback(params.has_callback); 476 function->set_has_callback(params.has_callback);
477 function->set_user_gesture(params.user_gesture); 477 function->set_user_gesture(params.user_gesture);
478 function->set_extension(extension); 478 function->set_extension(extension);
479 function->set_profile_id(profile_id); 479 function->set_profile_id(profile_id);
480 function->set_response_callback(callback); 480 function->set_response_callback(callback);
481 function->set_source_tab_id(params.source_tab_id); 481 function->set_source_tab_id(params.source_tab_id);
482 function->set_source_context_type( 482 function->set_source_context_type(
483 process_map.GetMostLikelyContextType(extension, requesting_process_id)); 483 process_map.GetMostLikelyContextType(extension, requesting_process_id));
484 function->set_source_process_id(requesting_process_id);
484 485
485 return function; 486 return function;
486 } 487 }
487 488
488 // static 489 // static
489 void ExtensionFunctionDispatcher::SendAccessDenied( 490 void ExtensionFunctionDispatcher::SendAccessDenied(
490 const ExtensionFunction::ResponseCallback& callback, 491 const ExtensionFunction::ResponseCallback& callback,
491 functions::HistogramValue histogram_value) { 492 functions::HistogramValue histogram_value) {
492 base::ListValue empty_list; 493 base::ListValue empty_list;
493 callback.Run(ExtensionFunction::FAILED, empty_list, 494 callback.Run(ExtensionFunction::FAILED, empty_list,
494 "Access to extension API denied.", histogram_value); 495 "Access to extension API denied.", histogram_value);
495 } 496 }
496 497
497 } // namespace extensions 498 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698