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

Side by Side Diff: content/browser/renderer_host/media/audio_input_renderer_host.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 // 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 // AudioInputRendererHost serves audio related requests from audio capturer 5 // AudioInputRendererHost serves audio related requests from audio capturer
6 // which lives inside the render process and provide access to audio hardware. 6 // which lives inside the render process and provide access to audio hardware.
7 // 7 //
8 // Create stream sequence (AudioInputController = AIC): 8 // Create stream sequence (AudioInputController = AIC):
9 // 9 //
10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency -> 10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency ->
(...skipping 27 matching lines...) Expand all
38 // 38 //
39 // This class is owned by BrowserRenderProcessHost and instantiated on UI 39 // This class is owned by BrowserRenderProcessHost and instantiated on UI
40 // thread. All other operations and method calls happen on IO thread, so we 40 // thread. All other operations and method calls happen on IO thread, so we
41 // need to be extra careful about the lifetime of this object. 41 // need to be extra careful about the lifetime of this object.
42 // 42 //
43 // To ensure low latency audio, a SyncSocket pair is used to signal buffer 43 // To ensure low latency audio, a SyncSocket pair is used to signal buffer
44 // readiness without having to route messages using the IO thread. 44 // readiness without having to route messages using the IO thread.
45 45
46 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ 46 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_
47 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ 47 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_
48 #pragma once
49 48
50 #include <map> 49 #include <map>
51 #include <string> 50 #include <string>
52 51
53 #include "base/compiler_specific.h" 52 #include "base/compiler_specific.h"
54 #include "base/gtest_prod_util.h" 53 #include "base/gtest_prod_util.h"
55 #include "base/memory/ref_counted.h" 54 #include "base/memory/ref_counted.h"
56 #include "base/memory/scoped_ptr.h" 55 #include "base/memory/scoped_ptr.h"
57 #include "base/process.h" 56 #include "base/process.h"
58 #include "base/sequenced_task_runner_helpers.h" 57 #include "base/sequenced_task_runner_helpers.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 AudioEntryMap audio_entries_; 208 AudioEntryMap audio_entries_;
210 209
211 // A map of session IDs to audio session sources. 210 // A map of session IDs to audio session sources.
212 typedef std::map<int, int> SessionEntryMap; 211 typedef std::map<int, int> SessionEntryMap;
213 SessionEntryMap session_entries_; 212 SessionEntryMap session_entries_;
214 213
215 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); 214 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost);
216 }; 215 };
217 216
218 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ 217 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698