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/metrics/sparse_histogram.h" | 8 #include "base/metrics/sparse_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/extension_messages.h" | |
13 #include "content/public/browser/notification_source.h" | 12 #include "content/public/browser/notification_source.h" |
14 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
15 #include "content/public/browser/render_frame_host.h" | 14 #include "content/public/browser/render_frame_host.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" |
19 #include "extensions/common/extension_api.h" | 18 #include "extensions/common/extension_api.h" |
| 19 #include "extensions/common/extension_messages.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 using content::RenderViewHost; | 22 using content::RenderViewHost; |
23 using content::WebContents; | 23 using content::WebContents; |
24 using extensions::ExtensionAPI; | 24 using extensions::ExtensionAPI; |
25 using extensions::Feature; | 25 using extensions::Feature; |
26 | 26 |
27 // static | 27 // static |
28 void ExtensionFunctionDeleteTraits::Destruct(const ExtensionFunction* x) { | 28 void ExtensionFunctionDeleteTraits::Destruct(const ExtensionFunction* x) { |
29 x->Destruct(); | 29 x->Destruct(); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { | 263 SyncIOThreadExtensionFunction::SyncIOThreadExtensionFunction() { |
264 } | 264 } |
265 | 265 |
266 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { | 266 SyncIOThreadExtensionFunction::~SyncIOThreadExtensionFunction() { |
267 } | 267 } |
268 | 268 |
269 void SyncIOThreadExtensionFunction::Run() { | 269 void SyncIOThreadExtensionFunction::Run() { |
270 SendResponse(RunImpl()); | 270 SendResponse(RunImpl()); |
271 } | 271 } |
OLD | NEW |