OLD | NEW |
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 "chrome/renderer/renderer_webkitclient_impl.h" | 5 #include "chrome/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/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| 11 #include "base/utf_string_conversions.h" |
11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/common/database_util.h" | 13 #include "chrome/common/database_util.h" |
13 #include "chrome/common/render_messages.h" | 14 #include "chrome/common/render_messages.h" |
14 #include "chrome/common/webmessageportchannel_impl.h" | 15 #include "chrome/common/webmessageportchannel_impl.h" |
15 #include "chrome/plugin/npobject_util.h" | 16 #include "chrome/plugin/npobject_util.h" |
16 #include "chrome/renderer/net/renderer_net_predictor.h" | 17 #include "chrome/renderer/net/renderer_net_predictor.h" |
17 #include "chrome/renderer/render_thread.h" | 18 #include "chrome/renderer/render_thread.h" |
18 #include "chrome/renderer/render_view.h" | 19 #include "chrome/renderer/render_view.h" |
19 #include "chrome/renderer/renderer_webidbfactory_impl.h" | 20 #include "chrome/renderer/renderer_webidbfactory_impl.h" |
20 #include "chrome/renderer/renderer_webstoragenamespace_impl.h" | 21 #include "chrome/renderer/renderer_webstoragenamespace_impl.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 const WebKit::WebString& challenge, | 488 const WebKit::WebString& challenge, |
488 const WebKit::WebURL& url) { | 489 const WebKit::WebURL& url) { |
489 std::string signed_public_key; | 490 std::string signed_public_key; |
490 RenderThread::current()->Send(new ViewHostMsg_Keygen( | 491 RenderThread::current()->Send(new ViewHostMsg_Keygen( |
491 static_cast<uint32>(key_size_index), | 492 static_cast<uint32>(key_size_index), |
492 challenge.utf8(), | 493 challenge.utf8(), |
493 GURL(url), | 494 GURL(url), |
494 &signed_public_key)); | 495 &signed_public_key)); |
495 return WebString::fromUTF8(signed_public_key); | 496 return WebString::fromUTF8(signed_public_key); |
496 } | 497 } |
OLD | NEW |