OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |