| OLD | NEW |
| 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.h" | 5 #include "chrome/browser/extensions/extension_function.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
| 11 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 11 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 12 #include "chrome/common/extensions/api/extension_api.h" | |
| 13 #include "chrome/common/extensions/extension_messages.h" | 12 #include "chrome/common/extensions/extension_messages.h" |
| 14 #include "content/public/browser/notification_source.h" | 13 #include "content/public/browser/notification_source.h" |
| 15 #include "content/public/browser/notification_types.h" | 14 #include "content/public/browser/notification_types.h" |
| 16 #include "content/public/browser/render_view_host.h" | 15 #include "content/public/browser/render_view_host.h" |
| 17 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 18 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
| 18 #include "extensions/common/extension_api.h" |
| 19 | 19 |
| 20 using content::BrowserThread; | 20 using content::BrowserThread; |
| 21 using content::RenderViewHost; | 21 using content::RenderViewHost; |
| 22 using content::WebContents; | 22 using content::WebContents; |
| 23 using extensions::ExtensionAPI; | 23 using extensions::ExtensionAPI; |
| 24 using extensions::Feature; | 24 using extensions::Feature; |
| 25 | 25 |
| 26 // static | 26 // static |
| 27 void ExtensionFunctionDeleteTraits::Destruct(const ExtensionFunction* x) { | 27 void ExtensionFunctionDeleteTraits::Destruct(const ExtensionFunction* x) { |
| 28 x->Destruct(); | 28 x->Destruct(); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { | 235 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { |
| 236 } | 236 } |
| 237 | 237 |
| 238 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { | 238 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { |
| 239 } | 239 } |
| 240 | 240 |
| 241 void SyncIOThreadExtensionFunction::Run() { | 241 void SyncIOThreadExtensionFunction::Run() { |
| 242 SendResponse(RunImpl()); | 242 SendResponse(RunImpl()); |
| 243 } | 243 } |
| OLD | NEW |