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 "chrome/browser/extensions/chrome_extension_function.h" | 5 #include "chrome/browser/extensions/chrome_extension_function.h" |
6 | 6 |
7 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 7 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
8 #include "chrome/browser/extensions/window_controller.h" | 8 #include "chrome/browser/extensions/window_controller.h" |
9 #include "chrome/browser/extensions/window_controller_list.h" | 9 #include "chrome/browser/extensions/window_controller_list.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" |
| 13 #include "chrome/browser/ui/host_desktop.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
15 #include "content/public/browser/render_view_host.h" | 16 #include "content/public/browser/render_view_host.h" |
16 #include "extensions/browser/extension_function_dispatcher.h" | 17 #include "extensions/browser/extension_function_dispatcher.h" |
17 | 18 |
18 using content::RenderViewHost; | 19 using content::RenderViewHost; |
19 using content::WebContents; | 20 using content::WebContents; |
20 | 21 |
21 ChromeUIThreadExtensionFunction::ChromeUIThreadExtensionFunction() { | 22 ChromeUIThreadExtensionFunction::ChromeUIThreadExtensionFunction() { |
22 } | 23 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 118 |
118 ExtensionFunction::ResponseAction ChromeSyncExtensionFunction::Run() { | 119 ExtensionFunction::ResponseAction ChromeSyncExtensionFunction::Run() { |
119 return RespondNow(RunSync() ? ArgumentList(results_.Pass()) : Error(error_)); | 120 return RespondNow(RunSync() ? ArgumentList(results_.Pass()) : Error(error_)); |
120 } | 121 } |
121 | 122 |
122 // static | 123 // static |
123 bool ChromeSyncExtensionFunction::ValidationFailure( | 124 bool ChromeSyncExtensionFunction::ValidationFailure( |
124 ChromeSyncExtensionFunction* function) { | 125 ChromeSyncExtensionFunction* function) { |
125 return false; | 126 return false; |
126 } | 127 } |
OLD | NEW |