OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 15 matching lines...) Expand all Loading... |
26 #include "content/common/plugin_messages.h" | 26 #include "content/common/plugin_messages.h" |
27 #include "content/common/resource_messages.h" | 27 #include "content/common/resource_messages.h" |
28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
29 #include "content/public/browser/content_browser_client.h" | 29 #include "content/public/browser/content_browser_client.h" |
30 #include "content/public/common/content_switches.h" | 30 #include "content/public/common/content_switches.h" |
31 #include "ipc/ipc_switches.h" | 31 #include "ipc/ipc_switches.h" |
32 #include "ui/base/ui_base_switches.h" | 32 #include "ui/base/ui_base_switches.h" |
33 #include "ui/gfx/gl/gl_switches.h" | 33 #include "ui/gfx/gl/gl_switches.h" |
34 #include "ui/gfx/native_widget_types.h" | 34 #include "ui/gfx/native_widget_types.h" |
35 | 35 |
| 36 using content::BrowserThread; |
| 37 |
36 #if defined(USE_X11) | 38 #if defined(USE_X11) |
37 #include "ui/gfx/gtk_native_view_id_manager.h" | 39 #include "ui/gfx/gtk_native_view_id_manager.h" |
38 #endif | 40 #endif |
39 | 41 |
40 #if defined(OS_MACOSX) | 42 #if defined(OS_MACOSX) |
41 #include "base/mac/mac_util.h" | 43 #include "base/mac/mac_util.h" |
42 #include "content/common/plugin_carbon_interpose_constants_mac.h" | 44 #include "content/common/plugin_carbon_interpose_constants_mac.h" |
43 #include "ui/gfx/rect.h" | 45 #include "ui/gfx/rect.h" |
44 #endif | 46 #endif |
45 | 47 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 415 } |
414 | 416 |
415 void PluginProcessHost::OnChannelCreated( | 417 void PluginProcessHost::OnChannelCreated( |
416 const IPC::ChannelHandle& channel_handle) { | 418 const IPC::ChannelHandle& channel_handle) { |
417 Client* client = sent_requests_.front(); | 419 Client* client = sent_requests_.front(); |
418 | 420 |
419 if (client) | 421 if (client) |
420 client->OnChannelOpened(channel_handle); | 422 client->OnChannelOpened(channel_handle); |
421 sent_requests_.pop_front(); | 423 sent_requests_.pop_front(); |
422 } | 424 } |
OLD | NEW |