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

Side by Side Diff: ppapi/proxy/ppp_content_decryptor_private_proxy.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 2 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
« no previous file with comments | « ppapi/proxy/ppb_file_ref_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ppapi/proxy/ppp_content_decryptor_private_proxy.h" 5 #include "ppapi/proxy/ppp_content_decryptor_private_proxy.h"
6 6
7 #include "base/platform_file.h" 7 #include "base/platform_file.h"
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/ppb_core.h" 9 #include "ppapi/c/ppb_core.h"
10 #include "ppapi/proxy/content_decryptor_private_serializer.h" 10 #include "ppapi/proxy/content_decryptor_private_serializer.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 230 }
231 231
232 static const PPP_ContentDecryptor_Private content_decryptor_interface = { 232 static const PPP_ContentDecryptor_Private content_decryptor_interface = {
233 &GenerateKeyRequest, 233 &GenerateKeyRequest,
234 &AddKey, 234 &AddKey,
235 &CancelKeyRequest, 235 &CancelKeyRequest,
236 &Decrypt, 236 &Decrypt,
237 &DecryptAndDecode 237 &DecryptAndDecode
238 }; 238 };
239 239
240 InterfaceProxy* CreateContentDecryptorPPPProxy(Dispatcher* dispatcher) {
241 return new PPP_ContentDecryptor_Private_Proxy(dispatcher);
242 }
243
244 } // namespace 240 } // namespace
245 241
246 PPP_ContentDecryptor_Private_Proxy::PPP_ContentDecryptor_Private_Proxy( 242 PPP_ContentDecryptor_Private_Proxy::PPP_ContentDecryptor_Private_Proxy(
247 Dispatcher* dispatcher) 243 Dispatcher* dispatcher)
248 : InterfaceProxy(dispatcher), 244 : InterfaceProxy(dispatcher),
249 ppp_decryptor_impl_(NULL) { 245 ppp_decryptor_impl_(NULL) {
250 if (dispatcher->IsPlugin()) { 246 if (dispatcher->IsPlugin()) {
251 ppp_decryptor_impl_ = static_cast<const PPP_ContentDecryptor_Private*>( 247 ppp_decryptor_impl_ = static_cast<const PPP_ContentDecryptor_Private*>(
252 dispatcher->local_get_interface()( 248 dispatcher->local_get_interface()(
253 PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE)); 249 PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE));
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 return; 348 return;
353 CallWhileUnlocked(ppp_decryptor_impl_->DecryptAndDecode, 349 CallWhileUnlocked(ppp_decryptor_impl_->DecryptAndDecode,
354 instance, 350 instance,
355 plugin_resource, 351 plugin_resource,
356 const_cast<const PP_EncryptedBlockInfo*>(&block_info)); 352 const_cast<const PP_EncryptedBlockInfo*>(&block_info));
357 } 353 }
358 } 354 }
359 355
360 } // namespace proxy 356 } // namespace proxy
361 } // namespace ppapi 357 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_file_ref_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698