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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp

Issue 2123183002: Move crossThreadBind() from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_WTFCrossThreadCopier
Patch Set: Rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "modules/webaudio/OfflineAudioCompletionEvent.h" 59 #include "modules/webaudio/OfflineAudioCompletionEvent.h"
60 #include "modules/webaudio/OfflineAudioContext.h" 60 #include "modules/webaudio/OfflineAudioContext.h"
61 #include "modules/webaudio/OfflineAudioDestinationNode.h" 61 #include "modules/webaudio/OfflineAudioDestinationNode.h"
62 #include "modules/webaudio/OscillatorNode.h" 62 #include "modules/webaudio/OscillatorNode.h"
63 #include "modules/webaudio/PannerNode.h" 63 #include "modules/webaudio/PannerNode.h"
64 #include "modules/webaudio/PeriodicWave.h" 64 #include "modules/webaudio/PeriodicWave.h"
65 #include "modules/webaudio/PeriodicWaveConstraints.h" 65 #include "modules/webaudio/PeriodicWaveConstraints.h"
66 #include "modules/webaudio/ScriptProcessorNode.h" 66 #include "modules/webaudio/ScriptProcessorNode.h"
67 #include "modules/webaudio/StereoPannerNode.h" 67 #include "modules/webaudio/StereoPannerNode.h"
68 #include "modules/webaudio/WaveShaperNode.h" 68 #include "modules/webaudio/WaveShaperNode.h"
69 #include "platform/CrossThreadFunctional.h"
70 #include "platform/Histogram.h" 69 #include "platform/Histogram.h"
71 #include "platform/UserGestureIndicator.h" 70 #include "platform/UserGestureIndicator.h"
72 #include "platform/audio/IIRFilter.h" 71 #include "platform/audio/IIRFilter.h"
73 #include "public/platform/Platform.h" 72 #include "public/platform/Platform.h"
73 #include "wtf/Functional.h"
74 #include "wtf/text/WTFString.h" 74 #include "wtf/text/WTFString.h"
75 75
76 namespace blink { 76 namespace blink {
77 77
78 namespace { 78 namespace {
79 79
80 enum UserGestureRecord { 80 enum UserGestureRecord {
81 UserGestureRequiredAndAvailable = 0, 81 UserGestureRequiredAndAvailable = 0,
82 UserGestureRequiredAndNotAvailable, 82 UserGestureRequiredAndNotAvailable,
83 UserGestureNotRequiredAndAvailable, 83 UserGestureNotRequiredAndAvailable,
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 831
832 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const 832 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const
833 { 833 {
834 if (getExecutionContext()) 834 if (getExecutionContext())
835 return getExecutionContext()->getSecurityOrigin(); 835 return getExecutionContext()->getSecurityOrigin();
836 836
837 return nullptr; 837 return nullptr;
838 } 838 }
839 839
840 } // namespace blink 840 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698