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/renderer/npapi/webplugin_delegate_proxy.h" | 5 #include "content/renderer/npapi/webplugin_delegate_proxy.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 IPC_MESSAGE_HANDLER(PluginHostMsg_ResolveProxy, OnResolveProxy) | 381 IPC_MESSAGE_HANDLER(PluginHostMsg_ResolveProxy, OnResolveProxy) |
382 IPC_MESSAGE_HANDLER(PluginHostMsg_SetCookie, OnSetCookie) | 382 IPC_MESSAGE_HANDLER(PluginHostMsg_SetCookie, OnSetCookie) |
383 IPC_MESSAGE_HANDLER(PluginHostMsg_GetCookies, OnGetCookies) | 383 IPC_MESSAGE_HANDLER(PluginHostMsg_GetCookies, OnGetCookies) |
384 IPC_MESSAGE_HANDLER(PluginHostMsg_CancelDocumentLoad, OnCancelDocumentLoad) | 384 IPC_MESSAGE_HANDLER(PluginHostMsg_CancelDocumentLoad, OnCancelDocumentLoad) |
385 IPC_MESSAGE_HANDLER(PluginHostMsg_DidStartLoading, OnDidStartLoading) | 385 IPC_MESSAGE_HANDLER(PluginHostMsg_DidStartLoading, OnDidStartLoading) |
386 IPC_MESSAGE_HANDLER(PluginHostMsg_DidStopLoading, OnDidStopLoading) | 386 IPC_MESSAGE_HANDLER(PluginHostMsg_DidStopLoading, OnDidStopLoading) |
387 IPC_MESSAGE_HANDLER(PluginHostMsg_DeferResourceLoading, | 387 IPC_MESSAGE_HANDLER(PluginHostMsg_DeferResourceLoading, |
388 OnDeferResourceLoading) | 388 OnDeferResourceLoading) |
389 IPC_MESSAGE_HANDLER(PluginHostMsg_URLRedirectResponse, | 389 IPC_MESSAGE_HANDLER(PluginHostMsg_URLRedirectResponse, |
390 OnURLRedirectResponse) | 390 OnURLRedirectResponse) |
391 IPC_MESSAGE_HANDLER(PluginHostMsg_CheckIfRunInsecureContent, | |
392 OnCheckIfRunInsecureContent) | |
393 #if defined(OS_WIN) | 391 #if defined(OS_WIN) |
394 IPC_MESSAGE_HANDLER(PluginHostMsg_SetWindowlessData, OnSetWindowlessData) | 392 IPC_MESSAGE_HANDLER(PluginHostMsg_SetWindowlessData, OnSetWindowlessData) |
395 IPC_MESSAGE_HANDLER(PluginHostMsg_NotifyIMEStatus, OnNotifyIMEStatus) | 393 IPC_MESSAGE_HANDLER(PluginHostMsg_NotifyIMEStatus, OnNotifyIMEStatus) |
396 #endif | 394 #endif |
397 #if defined(OS_MACOSX) | 395 #if defined(OS_MACOSX) |
398 IPC_MESSAGE_HANDLER(PluginHostMsg_FocusChanged, | 396 IPC_MESSAGE_HANDLER(PluginHostMsg_FocusChanged, |
399 OnFocusChanged); | 397 OnFocusChanged); |
400 IPC_MESSAGE_HANDLER(PluginHostMsg_StartIme, | 398 IPC_MESSAGE_HANDLER(PluginHostMsg_StartIme, |
401 OnStartIme); | 399 OnStartIme); |
402 IPC_MESSAGE_HANDLER(PluginHostMsg_AcceleratedPluginEnabledRendering, | 400 IPC_MESSAGE_HANDLER(PluginHostMsg_AcceleratedPluginEnabledRendering, |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 #endif | 1071 #endif |
1074 | 1072 |
1075 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1073 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
1076 int resource_id) { | 1074 int resource_id) { |
1077 if (!plugin_) | 1075 if (!plugin_) |
1078 return; | 1076 return; |
1079 | 1077 |
1080 plugin_->URLRedirectResponse(allow, resource_id); | 1078 plugin_->URLRedirectResponse(allow, resource_id); |
1081 } | 1079 } |
1082 | 1080 |
1083 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url, | |
1084 bool* result) { | |
1085 *result = plugin_->CheckIfRunInsecureContent(url); | |
1086 } | |
1087 | |
1088 } // namespace content | 1081 } // namespace content |
OLD | NEW |