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

Side by Side Diff: content/renderer/renderer_webkitclient_impl.cc

Issue 6930029: Make ViewHostMsg_Keygen a routed ipc (part 2/2). Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | « content/renderer/renderer_webkitclient_impl.h ('k') | webkit/glue/webkitclient_impl.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer_webkitclient_impl.h" 5 #include "content/renderer/renderer_webkitclient_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 double sample_rate, 549 double sample_rate,
550 WebAudioDevice::RenderCallback* callback) { 550 WebAudioDevice::RenderCallback* callback) {
551 return new RendererWebAudioDeviceImpl(buffer_size, 551 return new RendererWebAudioDeviceImpl(buffer_size,
552 channels, 552 channels,
553 sample_rate, 553 sample_rate,
554 callback); 554 callback);
555 } 555 }
556 556
557 //------------------------------------------------------------------------------ 557 //------------------------------------------------------------------------------
558 558
559 WebKit::WebString RendererWebKitClientImpl::signedPublicKeyAndChallengeString(
560 unsigned key_size_index,
561 const WebKit::WebString& challenge,
562 const WebKit::WebURL& url) {
563 std::string signed_public_key;
564 RenderThread::current()->Send(new ViewHostMsg_Keygen(
565 MSG_ROUTING_CONTROL,
566 static_cast<uint32>(key_size_index),
567 challenge.utf8(),
568 GURL(url),
569 &signed_public_key));
570 return WebString::fromUTF8(signed_public_key);
571 }
572
573 //------------------------------------------------------------------------------
574
575 WebBlobRegistry* RendererWebKitClientImpl::blobRegistry() { 559 WebBlobRegistry* RendererWebKitClientImpl::blobRegistry() {
576 if (!blob_registry_.get()) 560 if (!blob_registry_.get())
577 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current())); 561 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current()));
578 return blob_registry_.get(); 562 return blob_registry_.get();
579 } 563 }
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitclient_impl.h ('k') | webkit/glue/webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698