Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 197623005: Rename PPB_Find_Dev to PPB_Find_Private (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/pepper/pepper_plugin_instance_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" 44 #include "content/renderer/pepper/renderer_ppapi_host_impl.h"
45 #include "content/renderer/pepper/url_request_info_util.h" 45 #include "content/renderer/pepper/url_request_info_util.h"
46 #include "content/renderer/pepper/url_response_info_util.h" 46 #include "content/renderer/pepper/url_response_info_util.h"
47 #include "content/renderer/render_frame_impl.h" 47 #include "content/renderer/render_frame_impl.h"
48 #include "content/renderer/render_thread_impl.h" 48 #include "content/renderer/render_thread_impl.h"
49 #include "content/renderer/render_view_impl.h" 49 #include "content/renderer/render_view_impl.h"
50 #include "content/renderer/render_widget.h" 50 #include "content/renderer/render_widget.h"
51 #include "content/renderer/render_widget_fullscreen_pepper.h" 51 #include "content/renderer/render_widget_fullscreen_pepper.h"
52 #include "content/renderer/sad_plugin.h" 52 #include "content/renderer/sad_plugin.h"
53 #include "media/base/audio_hardware_config.h" 53 #include "media/base/audio_hardware_config.h"
54 #include "ppapi/c/dev/ppb_find_dev.h"
55 #include "ppapi/c/dev/ppb_zoom_dev.h" 54 #include "ppapi/c/dev/ppb_zoom_dev.h"
56 #include "ppapi/c/dev/ppp_find_dev.h"
57 #include "ppapi/c/dev/ppp_selection_dev.h" 55 #include "ppapi/c/dev/ppp_selection_dev.h"
58 #include "ppapi/c/dev/ppp_text_input_dev.h" 56 #include "ppapi/c/dev/ppp_text_input_dev.h"
59 #include "ppapi/c/dev/ppp_zoom_dev.h" 57 #include "ppapi/c/dev/ppp_zoom_dev.h"
60 #include "ppapi/c/pp_rect.h" 58 #include "ppapi/c/pp_rect.h"
61 #include "ppapi/c/ppb_audio_config.h" 59 #include "ppapi/c/ppb_audio_config.h"
62 #include "ppapi/c/ppb_core.h" 60 #include "ppapi/c/ppb_core.h"
63 #include "ppapi/c/ppb_gamepad.h" 61 #include "ppapi/c/ppb_gamepad.h"
64 #include "ppapi/c/ppp_input_event.h" 62 #include "ppapi/c/ppp_input_event.h"
65 #include "ppapi/c/ppp_instance.h" 63 #include "ppapi/c/ppp_instance.h"
66 #include "ppapi/c/ppp_messaging.h" 64 #include "ppapi/c/ppp_messaging.h"
67 #include "ppapi/c/ppp_mouse_lock.h" 65 #include "ppapi/c/ppp_mouse_lock.h"
66 #include "ppapi/c/private/ppb_find_private.h"
67 #include "ppapi/c/private/ppp_find_private.h"
68 #include "ppapi/c/private/ppp_instance_private.h" 68 #include "ppapi/c/private/ppp_instance_private.h"
69 #include "ppapi/c/private/ppp_pdf.h" 69 #include "ppapi/c/private/ppp_pdf.h"
70 #include "ppapi/host/ppapi_host.h" 70 #include "ppapi/host/ppapi_host.h"
71 #include "ppapi/proxy/ppapi_messages.h" 71 #include "ppapi/proxy/ppapi_messages.h"
72 #include "ppapi/proxy/uma_private_resource.h" 72 #include "ppapi/proxy/uma_private_resource.h"
73 #include "ppapi/proxy/url_loader_resource.h" 73 #include "ppapi/proxy/url_loader_resource.h"
74 #include "ppapi/shared_impl/ppapi_permissions.h" 74 #include "ppapi/shared_impl/ppapi_permissions.h"
75 #include "ppapi/shared_impl/ppapi_preferences.h" 75 #include "ppapi/shared_impl/ppapi_preferences.h"
76 #include "ppapi/shared_impl/ppb_gamepad_shared.h" 76 #include "ppapi/shared_impl/ppb_gamepad_shared.h"
77 #include "ppapi/shared_impl/ppb_input_event_shared.h" 77 #include "ppapi/shared_impl/ppb_input_event_shared.h"
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 return; 1387 return;
1388 find_identifier_ = -1; 1388 find_identifier_ = -1;
1389 plugin_find_interface_->StopFind(pp_instance()); 1389 plugin_find_interface_->StopFind(pp_instance());
1390 } 1390 }
1391 1391
1392 bool PepperPluginInstanceImpl::LoadFindInterface() { 1392 bool PepperPluginInstanceImpl::LoadFindInterface() {
1393 if (!module_->permissions().HasPermission(ppapi::PERMISSION_PRIVATE)) 1393 if (!module_->permissions().HasPermission(ppapi::PERMISSION_PRIVATE))
1394 return false; 1394 return false;
1395 if (!plugin_find_interface_) { 1395 if (!plugin_find_interface_) {
1396 plugin_find_interface_ = 1396 plugin_find_interface_ =
1397 static_cast<const PPP_Find_Dev*>(module_->GetPluginInterface( 1397 static_cast<const PPP_Find_Private*>(module_->GetPluginInterface(
1398 PPP_FIND_DEV_INTERFACE)); 1398 PPP_FIND_PRIVATE_INTERFACE));
1399 } 1399 }
1400 1400
1401 return !!plugin_find_interface_; 1401 return !!plugin_find_interface_;
1402 } 1402 }
1403 1403
1404 bool PepperPluginInstanceImpl::LoadInputEventInterface() { 1404 bool PepperPluginInstanceImpl::LoadInputEventInterface() {
1405 if (!checked_for_plugin_input_event_interface_) { 1405 if (!checked_for_plugin_input_event_interface_) {
1406 checked_for_plugin_input_event_interface_ = true; 1406 checked_for_plugin_input_event_interface_ = true;
1407 plugin_input_event_interface_ = 1407 plugin_input_event_interface_ =
1408 static_cast<const PPP_InputEvent*>(module_->GetPluginInterface( 1408 static_cast<const PPP_InputEvent*>(module_->GetPluginInterface(
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
3158 // Running out-of-process. Initiate an IPC call to notify the plugin 3158 // Running out-of-process. Initiate an IPC call to notify the plugin
3159 // process. 3159 // process.
3160 ppapi::proxy::HostDispatcher* dispatcher = 3160 ppapi::proxy::HostDispatcher* dispatcher =
3161 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3161 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3162 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3162 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3163 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3163 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3164 } 3164 }
3165 } 3165 }
3166 3166
3167 } // namespace content 3167 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | content/renderer/pepper/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698