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

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

Issue 464883002: Credential Manager: Renderer-side implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 873
874 //------------------------------------------------------------------------------ 874 //------------------------------------------------------------------------------
875 875
876 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { 876 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() {
877 // blob_registry_ can be NULL when running some tests. 877 // blob_registry_ can be NULL when running some tests.
878 return blob_registry_.get(); 878 return blob_registry_.get();
879 } 879 }
880 880
881 //------------------------------------------------------------------------------ 881 //------------------------------------------------------------------------------
882 882
883 blink::WebCredentialManager* RendererWebKitPlatformSupportImpl::credentialManage r() {
884 return GetContentClient()->renderer()->GetCredentialManager();
885 }
886
887 //------------------------------------------------------------------------------
888
883 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { 889 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) {
884 PlatformEventObserverBase* observer = 890 PlatformEventObserverBase* observer =
885 platform_event_observers_.Lookup(blink::WebPlatformEventGamepad); 891 platform_event_observers_.Lookup(blink::WebPlatformEventGamepad);
886 if (!observer) 892 if (!observer)
887 return; 893 return;
888 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads); 894 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads);
889 } 895 }
890 896
891 //------------------------------------------------------------------------------ 897 //------------------------------------------------------------------------------
892 898
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( 1193 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting(
1188 const blink::WebBatteryStatus& status) { 1194 const blink::WebBatteryStatus& status) {
1189 PlatformEventObserverBase* observer = 1195 PlatformEventObserverBase* observer =
1190 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); 1196 platform_event_observers_.Lookup(blink::WebPlatformEventBattery);
1191 if (!observer) 1197 if (!observer)
1192 return; 1198 return;
1193 observer->SendFakeDataForTesting((void*)&status); 1199 observer->SendFakeDataForTesting((void*)&status);
1194 } 1200 }
1195 1201
1196 } // namespace content 1202 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698