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

Side by Side Diff: Source/platform/exported/WebAudioBus.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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) 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 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 #include "public/platform/WebAudioBus.h" 26 #include "public/platform/WebAudioBus.h"
27 27
28 #if ENABLE(WEB_AUDIO) 28 #if ENABLE(WEB_AUDIO)
29 #include "platform/audio/AudioBus.h" 29 #include "platform/audio/AudioBus.h"
30 #else 30 #else
31 #include "wtf/ThreadSafeRefCounted.h" 31 #include "wtf/ThreadSafeRefCounted.h"
32 32
33 namespace WebCore { 33 namespace blink {
34 class AudioBus : public ThreadSafeRefCounted<AudioBus> { 34 class AudioBus : public ThreadSafeRefCounted<AudioBus> {
35 }; 35 };
36 } // namespace WebCore 36 } // namespace blink
37 #endif 37 #endif
38 38
39 #include "wtf/PassRefPtr.h" 39 #include "wtf/PassRefPtr.h"
40 #include "wtf/RefPtr.h" 40 #include "wtf/RefPtr.h"
41 41
42 using namespace WebCore; 42 using namespace blink;
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class WebAudioBusPrivate : public AudioBus { 46 class WebAudioBusPrivate : public AudioBus {
47 }; 47 };
48 48
49 void WebAudioBus::initialize(unsigned numberOfChannels, size_t length, double sa mpleRate) 49 void WebAudioBus::initialize(unsigned numberOfChannels, size_t length, double sa mpleRate)
50 { 50 {
51 #if ENABLE(WEB_AUDIO) 51 #if ENABLE(WEB_AUDIO)
52 RefPtr<AudioBus> audioBus = AudioBus::create(numberOfChannels, length); 52 RefPtr<AudioBus> audioBus = AudioBus::create(numberOfChannels, length);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 RefPtr<AudioBus> audioBus(adoptRef(static_cast<AudioBus*>(m_private))); 142 RefPtr<AudioBus> audioBus(adoptRef(static_cast<AudioBus*>(m_private)));
143 m_private = 0; 143 m_private = 0;
144 return audioBus; 144 return audioBus;
145 #else 145 #else
146 ASSERT_NOT_REACHED(); 146 ASSERT_NOT_REACHED();
147 return nullptr; 147 return nullptr;
148 #endif 148 #endif
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/clipboard/ClipboardUtilitiesWin.cpp ('k') | Source/platform/exported/WebBlobData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698