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

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 an extra newline 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
« no previous file with comments | « public/README ('k') | public/platform/WebArrayBuffer.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 /* 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 286
286 // A wrapper for tcmalloc's HeapProfilerStart(); 287 // A wrapper for tcmalloc's HeapProfilerStart();
287 virtual void startHeapProfiling(const WebString& /*prefix*/) { } 288 virtual void startHeapProfiling(const WebString& /*prefix*/) { }
288 // A wrapper for tcmalloc's HeapProfilerStop(); 289 // A wrapper for tcmalloc's HeapProfilerStop();
289 virtual void stopHeapProfiling() { } 290 virtual void stopHeapProfiling() { }
290 // A wrapper for tcmalloc's HeapProfilerDump() 291 // A wrapper for tcmalloc's HeapProfilerDump()
291 virtual void dumpHeapProfiling(const WebString& /*reason*/) { } 292 virtual void dumpHeapProfiling(const WebString& /*reason*/) { }
292 // A wrapper for tcmalloc's GetHeapProfile() 293 // A wrapper for tcmalloc's GetHeapProfile()
293 virtual WebString getHeapProfile() { return WebString(); } 294 virtual WebString getHeapProfile() { return WebString(); }
294 295
296
295 // Message Ports ------------------------------------------------------- 297 // Message Ports -------------------------------------------------------
296 298
297 // Creates a Message Port Channel. This can be called on any thread. 299 // Creates a Message Port Channel. This can be called on any thread.
298 // The returned object should only be used on the thread it was created on. 300 // The returned object should only be used on the thread it was created on.
299 virtual WebMessagePortChannel* createMessagePortChannel() { return 0; } 301 virtual WebMessagePortChannel* createMessagePortChannel() { return 0; }
300 302
301 303
302 // Network ------------------------------------------------------------- 304 // Network -------------------------------------------------------------
303 305
304 // Returns a new WebURLLoader instance. 306 // Returns a new WebURLLoader instance.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 virtual bool isThreadedCompositingEnabled() { return false; } 526 virtual bool isThreadedCompositingEnabled() { return false; }
525 527
526 virtual WebCompositorSupport* compositorSupport() { return 0; } 528 virtual WebCompositorSupport* compositorSupport() { return 0; }
527 529
528 virtual WebFlingAnimator* createFlingAnimator() { return 0; } 530 virtual WebFlingAnimator* createFlingAnimator() { return 0; }
529 531
530 // Creates a new fling animation curve instance for device |deviceSource| 532 // Creates a new fling animation curve instance for device |deviceSource|
531 // with |velocity| and already scrolled |cumulativeScroll| pixels. 533 // with |velocity| and already scrolled |cumulativeScroll| pixels.
532 virtual WebGestureCurve* createFlingAnimationCurve(int deviceSource, const W ebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0; } 534 virtual WebGestureCurve* createFlingAnimationCurve(int deviceSource, const W ebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0; }
533 535
536
534 // WebRTC ---------------------------------------------------------- 537 // WebRTC ----------------------------------------------------------
535 538
536 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection. 539 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection.
537 // May return null if WebRTC functionality is not avaliable or out of resour ces. 540 // May return null if WebRTC functionality is not avaliable or out of resour ces.
538 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return 0; } 541 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return 0; }
539 542
540 // May return null if WebRTC functionality is not avaliable or out of resour ces. 543 // May return null if WebRTC functionality is not avaliable or out of resour ces.
541 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return 0; } 544 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return 0; }
542 545
543 546
544 // WebWorker ---------------------------------------------------------- 547 // WebWorker ----------------------------------------------------------
545 548
546 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 549 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
547 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 550 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
548 551
549 552
553 // WebCrypto ----------------------------------------------------------
554
555 // May return 0.
556 virtual WebCrypto* crypto() { return 0; }
557
558
550 // Device Motion / Orientation ---------------------------------------- 559 // Device Motion / Orientation ----------------------------------------
551 560
552 // Sets a Listener to listen for device motion data updates. 561 // Sets a Listener to listen for device motion data updates.
553 // If null, the platform stops providing device motion data to the current l istener. 562 // If null, the platform stops providing device motion data to the current l istener.
554 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } 563 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { }
555 564
556 protected: 565 protected:
557 virtual ~Platform() { } 566 virtual ~Platform() { }
558 }; 567 };
559 568
560 } // namespace WebKit 569 } // namespace WebKit
561 570
562 #endif 571 #endif
OLDNEW
« no previous file with comments | « public/README ('k') | public/platform/WebArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698