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

Side by Side Diff: extensions/browser/extension_function.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.h" 5 #include "extensions/browser/extension_function.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "content/public/browser/notification_source.h" 10 #include "content/public/browser/notification_source.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 ExtensionFunction::ExtensionFunction() 230 ExtensionFunction::ExtensionFunction()
231 : request_id_(-1), 231 : request_id_(-1),
232 profile_id_(NULL), 232 profile_id_(NULL),
233 name_(""), 233 name_(""),
234 has_callback_(false), 234 has_callback_(false),
235 include_incognito_(false), 235 include_incognito_(false),
236 user_gesture_(false), 236 user_gesture_(false),
237 bad_message_(false), 237 bad_message_(false),
238 histogram_value_(extensions::functions::UNKNOWN), 238 histogram_value_(extensions::functions::UNKNOWN),
239 source_tab_id_(-1), 239 source_tab_id_(-1),
240 source_context_type_(Feature::UNSPECIFIED_CONTEXT) { 240 source_context_type_(Feature::UNSPECIFIED_CONTEXT),
241 source_process_id_(-1) {
241 } 242 }
242 243
243 ExtensionFunction::~ExtensionFunction() { 244 ExtensionFunction::~ExtensionFunction() {
244 } 245 }
245 246
246 UIThreadExtensionFunction* ExtensionFunction::AsUIThreadExtensionFunction() { 247 UIThreadExtensionFunction* ExtensionFunction::AsUIThreadExtensionFunction() {
247 return NULL; 248 return NULL;
248 } 249 }
249 250
250 IOThreadExtensionFunction* ExtensionFunction::AsIOThreadExtensionFunction() { 251 IOThreadExtensionFunction* ExtensionFunction::AsIOThreadExtensionFunction() {
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 581
581 ExtensionFunction::ResponseAction SyncIOThreadExtensionFunction::Run() { 582 ExtensionFunction::ResponseAction SyncIOThreadExtensionFunction::Run() {
582 return RespondNow(RunSync() ? ArgumentList(results_.Pass()) : Error(error_)); 583 return RespondNow(RunSync() ? ArgumentList(results_.Pass()) : Error(error_));
583 } 584 }
584 585
585 // static 586 // static
586 bool SyncIOThreadExtensionFunction::ValidationFailure( 587 bool SyncIOThreadExtensionFunction::ValidationFailure(
587 SyncIOThreadExtensionFunction* function) { 588 SyncIOThreadExtensionFunction* function) {
588 return false; 589 return false;
589 } 590 }
OLDNEW
« no previous file with comments | « extensions/browser/extension_function.h ('k') | extensions/browser/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698