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/renderer_host/pepper/pepper_flash_drm_host.h" | 5 #include "chrome/browser/renderer_host/pepper/pepper_flash_drm_host.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <Windows.h> | 8 #include <Windows.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "content/public/browser/browser_ppapi_host.h" | 15 #include "content/public/browser/browser_ppapi_host.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/child_process_security_policy.h" | 17 #include "content/public/browser/child_process_security_policy.h" |
18 #include "content/public/browser/render_frame_host.h" | 18 #include "content/public/browser/render_frame_host.h" |
19 #include "content/public/common/pepper_plugin_info.h" | 19 #include "content/public/common/pepper_plugin_info.h" |
20 #include "ppapi/c/pp_errors.h" | 20 #include "ppapi/c/pp_errors.h" |
21 #include "ppapi/host/dispatch_host_message.h" | 21 #include "ppapi/host/dispatch_host_message.h" |
22 #include "ppapi/host/host_message_context.h" | 22 #include "ppapi/host/host_message_context.h" |
23 #include "ppapi/host/ppapi_host.h" | 23 #include "ppapi/host/ppapi_host.h" |
24 #include "ppapi/proxy/ppapi_messages.h" | 24 #include "ppapi/proxy/ppapi_messages.h" |
25 | 25 |
26 #if defined(USE_AURA) | 26 #if defined(USE_AURA) |
27 #include "ui/aura/root_window.h" | |
28 #include "ui/aura/window.h" | 27 #include "ui/aura/window.h" |
| 28 #include "ui/aura/window_event_dispatcher.h" |
29 #endif | 29 #endif |
30 | 30 |
31 using content::BrowserPpapiHost; | 31 using content::BrowserPpapiHost; |
32 | 32 |
33 namespace chrome { | 33 namespace chrome { |
34 | 34 |
35 namespace { | 35 namespace { |
36 const base::FilePath::CharType kVoucherFilename[] = | 36 const base::FilePath::CharType kVoucherFilename[] = |
37 FILE_PATH_LITERAL("plugin.vch"); | 37 FILE_PATH_LITERAL("plugin.vch"); |
38 } | 38 } |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 if (id.empty() && result == PP_OK) { | 188 if (id.empty() && result == PP_OK) { |
189 NOTREACHED(); | 189 NOTREACHED(); |
190 result = PP_ERROR_FAILED; | 190 result = PP_ERROR_FAILED; |
191 } | 191 } |
192 reply_context.params.set_result(result); | 192 reply_context.params.set_result(result); |
193 host()->SendReply(reply_context, | 193 host()->SendReply(reply_context, |
194 PpapiPluginMsg_FlashDRM_GetDeviceIDReply(id)); | 194 PpapiPluginMsg_FlashDRM_GetDeviceIDReply(id)); |
195 } | 195 } |
196 | 196 |
197 } // namespace chrome | 197 } // namespace chrome |
OLD | NEW |