| 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 "content/public/browser/notification_source.h" | 8 #include "content/public/browser/notification_source.h" |
| 9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 368 |
| 369 AsyncExtensionFunction::~AsyncExtensionFunction() { | 369 AsyncExtensionFunction::~AsyncExtensionFunction() { |
| 370 } | 370 } |
| 371 | 371 |
| 372 SyncExtensionFunction::SyncExtensionFunction() { | 372 SyncExtensionFunction::SyncExtensionFunction() { |
| 373 } | 373 } |
| 374 | 374 |
| 375 SyncExtensionFunction::~SyncExtensionFunction() { | 375 SyncExtensionFunction::~SyncExtensionFunction() { |
| 376 } | 376 } |
| 377 | 377 |
| 378 void SyncExtensionFunction::Run() { | 378 bool SyncExtensionFunction::RunImpl() { |
| 379 SendResponse(RunImpl()); | 379 SendResponse(RunSync()); |
| 380 return true; |
| 380 } | 381 } |
| 381 | 382 |
| 382 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { | 383 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { |
| 383 } | 384 } |
| 384 | 385 |
| 385 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { | 386 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { |
| 386 } | 387 } |
| 387 | 388 |
| 388 void SyncIOThreadExtensionFunction::Run() { | 389 void SyncIOThreadExtensionFunction::RunImpl() { |
| 389 SendResponse(RunImpl()); | 390 SendResponse(RunSync()); |
| 391 return true; |
| 390 } | 392 } |
| OLD | NEW |