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

Side by Side Diff: ppapi/cpp/private/content_decryptor_private.cc

Issue 301933002: Changing default_url to destination_url for consistency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing nit Created 6 years, 6 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
« no previous file with comments | « ppapi/cpp/private/content_decryptor_private.h ('k') | no next file » | 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/cpp/private/content_decryptor_private.h" 5 #include "ppapi/cpp/private/content_decryptor_private.h"
6 6
7 #include <cstring> // memcpy 7 #include <cstring> // memcpy
8 8
9 #include "ppapi/c/ppb_var.h" 9 #include "ppapi/c/ppb_var.h"
10 #include "ppapi/c/private/ppb_content_decryptor_private.h" 10 #include "ppapi/c/private/ppb_content_decryptor_private.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 const std::string& web_session_id) { 228 const std::string& web_session_id) {
229 if (has_interface<PPB_ContentDecryptor_Private>()) { 229 if (has_interface<PPB_ContentDecryptor_Private>()) {
230 pp::Var web_session_id_var(web_session_id); 230 pp::Var web_session_id_var(web_session_id);
231 get_interface<PPB_ContentDecryptor_Private>()->SessionCreated( 231 get_interface<PPB_ContentDecryptor_Private>()->SessionCreated(
232 associated_instance_.pp_instance(), 232 associated_instance_.pp_instance(),
233 session_id, 233 session_id,
234 web_session_id_var.pp_var()); 234 web_session_id_var.pp_var());
235 } 235 }
236 } 236 }
237 237
238 void ContentDecryptor_Private::SessionMessage(uint32_t session_id, 238 void ContentDecryptor_Private::SessionMessage(
239 pp::VarArrayBuffer message, 239 uint32_t session_id,
240 const std::string& default_url) { 240 pp::VarArrayBuffer message,
241 const std::string& destination_url) {
241 if (has_interface<PPB_ContentDecryptor_Private>()) { 242 if (has_interface<PPB_ContentDecryptor_Private>()) {
242 pp::Var default_url_var(default_url); 243 pp::Var destination_url_var(destination_url);
243 get_interface<PPB_ContentDecryptor_Private>()->SessionMessage( 244 get_interface<PPB_ContentDecryptor_Private>()->SessionMessage(
244 associated_instance_.pp_instance(), 245 associated_instance_.pp_instance(),
245 session_id, 246 session_id,
246 message.pp_var(), 247 message.pp_var(),
247 default_url_var.pp_var()); 248 destination_url_var.pp_var());
248 } 249 }
249 } 250 }
250 251
251 void ContentDecryptor_Private::SessionReady(uint32_t session_id) { 252 void ContentDecryptor_Private::SessionReady(uint32_t session_id) {
252 if (has_interface<PPB_ContentDecryptor_Private>()) { 253 if (has_interface<PPB_ContentDecryptor_Private>()) {
253 get_interface<PPB_ContentDecryptor_Private>()->SessionReady( 254 get_interface<PPB_ContentDecryptor_Private>()->SessionReady(
254 associated_instance_.pp_instance(), session_id); 255 associated_instance_.pp_instance(), session_id);
255 } 256 }
256 } 257 }
257 258
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 const PP_DecryptedSampleInfo& decrypted_sample_info) { 337 const PP_DecryptedSampleInfo& decrypted_sample_info) {
337 if (has_interface<PPB_ContentDecryptor_Private>()) { 338 if (has_interface<PPB_ContentDecryptor_Private>()) {
338 get_interface<PPB_ContentDecryptor_Private>()->DeliverSamples( 339 get_interface<PPB_ContentDecryptor_Private>()->DeliverSamples(
339 associated_instance_.pp_instance(), 340 associated_instance_.pp_instance(),
340 audio_frames.pp_resource(), 341 audio_frames.pp_resource(),
341 &decrypted_sample_info); 342 &decrypted_sample_info);
342 } 343 }
343 } 344 }
344 345
345 } // namespace pp 346 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/private/content_decryptor_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698