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

Side by Side Diff: public/platform/Platform.h

Issue 19082002: WebCrypto: Add SHA-1 support to crypto.subtle.digest(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove CryptoOperation.promise(), instead make finish() and abort() return Promise Created 7 years, 5 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class GrContext; 48 class GrContext;
49 49
50 namespace WebKit { 50 namespace WebKit {
51 51
52 class WebAudioBus; 52 class WebAudioBus;
53 class WebBlobRegistry; 53 class WebBlobRegistry;
54 class WebContentDecryptionModule; 54 class WebContentDecryptionModule;
55 class WebClipboard; 55 class WebClipboard;
56 class WebCompositorSupport; 56 class WebCompositorSupport;
57 class WebCookieJar; 57 class WebCookieJar;
58 class WebCrypto;
58 class WebDeviceMotionListener; 59 class WebDeviceMotionListener;
59 class WebDiscardableMemory; 60 class WebDiscardableMemory;
60 class WebFallbackThemeEngine; 61 class WebFallbackThemeEngine;
61 class WebFileSystem; 62 class WebFileSystem;
62 class WebFileUtilities; 63 class WebFileUtilities;
63 class WebFlingAnimator; 64 class WebFlingAnimator;
64 class WebGestureCurveTarget; 65 class WebGestureCurveTarget;
65 class WebGestureCurve; 66 class WebGestureCurve;
66 class WebGraphicsContext3DProvider; 67 class WebGraphicsContext3DProvider;
67 class WebHyphenator; 68 class WebHyphenator;
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 288
288 // A wrapper for tcmalloc's HeapProfilerStart(); 289 // A wrapper for tcmalloc's HeapProfilerStart();
289 virtual void startHeapProfiling(const WebString& /*prefix*/) { } 290 virtual void startHeapProfiling(const WebString& /*prefix*/) { }
290 // A wrapper for tcmalloc's HeapProfilerStop(); 291 // A wrapper for tcmalloc's HeapProfilerStop();
291 virtual void stopHeapProfiling() { } 292 virtual void stopHeapProfiling() { }
292 // A wrapper for tcmalloc's HeapProfilerDump() 293 // A wrapper for tcmalloc's HeapProfilerDump()
293 virtual void dumpHeapProfiling(const WebString& /*reason*/) { } 294 virtual void dumpHeapProfiling(const WebString& /*reason*/) { }
294 // A wrapper for tcmalloc's GetHeapProfile() 295 // A wrapper for tcmalloc's GetHeapProfile()
295 virtual WebString getHeapProfile() { return WebString(); } 296 virtual WebString getHeapProfile() { return WebString(); }
296 297
298
297 // Message Ports ------------------------------------------------------- 299 // Message Ports -------------------------------------------------------
298 300
299 // Creates a Message Port Channel. This can be called on any thread. 301 // Creates a Message Port Channel. This can be called on any thread.
300 // The returned object should only be used on the thread it was created on. 302 // The returned object should only be used on the thread it was created on.
301 virtual WebMessagePortChannel* createMessagePortChannel() { return 0; } 303 virtual WebMessagePortChannel* createMessagePortChannel() { return 0; }
302 304
303 305
304 // Network ------------------------------------------------------------- 306 // Network -------------------------------------------------------------
305 307
306 // Returns a new WebURLLoader instance. 308 // Returns a new WebURLLoader instance.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 virtual bool isThreadedCompositingEnabled() { return false; } 528 virtual bool isThreadedCompositingEnabled() { return false; }
527 529
528 virtual WebCompositorSupport* compositorSupport() { return 0; } 530 virtual WebCompositorSupport* compositorSupport() { return 0; }
529 531
530 virtual WebFlingAnimator* createFlingAnimator() { return 0; } 532 virtual WebFlingAnimator* createFlingAnimator() { return 0; }
531 533
532 // Creates a new fling animation curve instance for device |deviceSource| 534 // Creates a new fling animation curve instance for device |deviceSource|
533 // with |velocity| and already scrolled |cumulativeScroll| pixels. 535 // with |velocity| and already scrolled |cumulativeScroll| pixels.
534 virtual WebGestureCurve* createFlingAnimationCurve(int deviceSource, const W ebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0; } 536 virtual WebGestureCurve* createFlingAnimationCurve(int deviceSource, const W ebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0; }
535 537
538
536 // WebRTC ---------------------------------------------------------- 539 // WebRTC ----------------------------------------------------------
537 540
538 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection. 541 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection.
539 // May return null if WebRTC functionality is not avaliable or out of resour ces. 542 // May return null if WebRTC functionality is not avaliable or out of resour ces.
540 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return 0; } 543 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return 0; }
541 544
542 // May return null if WebRTC functionality is not avaliable or out of resour ces. 545 // May return null if WebRTC functionality is not avaliable or out of resour ces.
543 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return 0; } 546 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return 0; }
544 547
545 548
546 // WebWorker ---------------------------------------------------------- 549 // WebWorker ----------------------------------------------------------
547 550
548 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 551 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
549 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 552 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
550 553
551 554
555 // WebCrypto ----------------------------------------------------------
556
557 // May return 0.
558 virtual WebCrypto* crypto() { return 0; }
559
560
552 // Device Motion / Orientation ---------------------------------------- 561 // Device Motion / Orientation ----------------------------------------
553 562
554 // Sets a Listener to listen for device motion data updates. 563 // Sets a Listener to listen for device motion data updates.
555 // If null, the platform stops providing device motion data to the current l istener. 564 // If null, the platform stops providing device motion data to the current l istener.
556 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } 565 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { }
557 566
558 protected: 567 protected:
559 virtual ~Platform() { } 568 virtual ~Platform() { }
560 }; 569 };
561 570
562 } // namespace WebKit 571 } // namespace WebKit
563 572
564 #endif 573 #endif
OLDNEW
« public/README ('K') | « public/README ('k') | public/platform/WebArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698