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 "content/browser/plugin_process_host.h" | 5 #include "content/browser/plugin_process_host.h" |
6 | 6 |
7 #if defined(OS_WIN) && !defined(USE_AURA) | 7 #if defined(OS_WIN) && !defined(USE_AURA) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #elif defined(OS_POSIX) | 9 #elif defined(OS_POSIX) |
10 #include <utility> // for pair<> | 10 #include <utility> // for pair<> |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/common/plugin_messages.h" | 28 #include "content/common/plugin_messages.h" |
29 #include "content/common/resource_messages.h" | 29 #include "content/common/resource_messages.h" |
30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
31 #include "content/public/browser/content_browser_client.h" | 31 #include "content/public/browser/content_browser_client.h" |
32 #include "content/public/browser/notification_types.h" | 32 #include "content/public/browser/notification_types.h" |
33 #include "content/public/browser/plugin_service.h" | 33 #include "content/public/browser/plugin_service.h" |
34 #include "content/public/common/content_switches.h" | 34 #include "content/public/common/content_switches.h" |
35 #include "content/public/common/process_type.h" | 35 #include "content/public/common/process_type.h" |
36 #include "ipc/ipc_switches.h" | 36 #include "ipc/ipc_switches.h" |
37 #include "ui/base/ui_base_switches.h" | 37 #include "ui/base/ui_base_switches.h" |
38 #include "ui/gfx/gl/gl_switches.h" | |
39 #include "ui/gfx/native_widget_types.h" | 38 #include "ui/gfx/native_widget_types.h" |
| 39 #include "ui/gl/gl_switches.h" |
40 | 40 |
41 using content::BrowserThread; | 41 using content::BrowserThread; |
42 using content::ChildProcessData; | 42 using content::ChildProcessData; |
43 using content::ChildProcessHost; | 43 using content::ChildProcessHost; |
44 | 44 |
45 #if defined(USE_X11) | 45 #if defined(USE_X11) |
46 #include "ui/gfx/gtk_native_view_id_manager.h" | 46 #include "ui/gfx/gtk_native_view_id_manager.h" |
47 #endif | 47 #endif |
48 | 48 |
49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 } | 440 } |
441 | 441 |
442 void PluginProcessHost::OnChannelCreated( | 442 void PluginProcessHost::OnChannelCreated( |
443 const IPC::ChannelHandle& channel_handle) { | 443 const IPC::ChannelHandle& channel_handle) { |
444 Client* client = sent_requests_.front(); | 444 Client* client = sent_requests_.front(); |
445 | 445 |
446 if (client) | 446 if (client) |
447 client->OnChannelOpened(channel_handle); | 447 client->OnChannelOpened(channel_handle); |
448 sent_requests_.pop_front(); | 448 sent_requests_.pop_front(); |
449 } | 449 } |
OLD | NEW |