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/ui/extensions/shell_window.h" | 5 #include "chrome/browser/ui/extensions/shell_window.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/extensions/extension_process_manager.h" | 8 #include "chrome/browser/extensions/extension_process_manager.h" |
9 #include "chrome/browser/extensions/shell_window_registry.h" | 9 #include "chrome/browser/extensions/shell_window_registry.h" |
10 #include "chrome/browser/file_select_helper.h" | 10 #include "chrome/browser/file_select_helper.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
31 #include "content/public/browser/notification_source.h" | 31 #include "content/public/browser/notification_source.h" |
32 #include "content/public/browser/notification_types.h" | 32 #include "content/public/browser/notification_types.h" |
33 #include "content/public/browser/render_process_host.h" | 33 #include "content/public/browser/render_process_host.h" |
34 #include "content/public/browser/render_view_host.h" | 34 #include "content/public/browser/render_view_host.h" |
35 #include "content/public/browser/resource_dispatcher_host.h" | 35 #include "content/public/browser/resource_dispatcher_host.h" |
36 #include "content/public/browser/site_instance.h" | 36 #include "content/public/browser/site_instance.h" |
37 #include "content/public/browser/web_contents.h" | 37 #include "content/public/browser/web_contents.h" |
38 #include "content/public/browser/web_intents_dispatcher.h" | 38 #include "content/public/browser/web_intents_dispatcher.h" |
39 #include "content/public/common/renderer_preferences.h" | 39 #include "content/public/common/renderer_preferences.h" |
| 40 #include "webkit/glue/web_intent_data.h" |
40 | 41 |
41 using content::BrowserThread; | 42 using content::BrowserThread; |
42 using content::ConsoleMessageLevel; | 43 using content::ConsoleMessageLevel; |
43 using content::RenderViewHost; | 44 using content::RenderViewHost; |
44 using content::ResourceDispatcherHost; | 45 using content::ResourceDispatcherHost; |
45 using content::SiteInstance; | 46 using content::SiteInstance; |
46 using content::WebContents; | 47 using content::WebContents; |
47 using extensions::APIPermission; | 48 using extensions::APIPermission; |
48 | 49 |
49 namespace { | 50 namespace { |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 extension_function_dispatcher_.Dispatch(params, | 352 extension_function_dispatcher_.Dispatch(params, |
352 web_contents_->GetRenderViewHost()); | 353 web_contents_->GetRenderViewHost()); |
353 } | 354 } |
354 | 355 |
355 void ShellWindow::AddMessageToDevToolsConsole(ConsoleMessageLevel level, | 356 void ShellWindow::AddMessageToDevToolsConsole(ConsoleMessageLevel level, |
356 const std::string& message) { | 357 const std::string& message) { |
357 content::RenderViewHost* rvh = web_contents_->GetRenderViewHost(); | 358 content::RenderViewHost* rvh = web_contents_->GetRenderViewHost(); |
358 rvh->Send(new ExtensionMsg_AddMessageToConsole( | 359 rvh->Send(new ExtensionMsg_AddMessageToConsole( |
359 rvh->GetRoutingID(), level, message)); | 360 rvh->GetRoutingID(), level, message)); |
360 } | 361 } |
OLD | NEW |