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

Side by Side Diff: content/renderer/media/scoped_loop_observer.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 #ifndef CONTENT_RENDERER_MEDIA_SCOPED_LOOP_OBSERVER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_SCOPED_LOOP_OBSERVER_H_
6 #define CONTENT_RENDERER_MEDIA_SCOPED_LOOP_OBSERVER_H_ 6 #define CONTENT_RENDERER_MEDIA_SCOPED_LOOP_OBSERVER_H_
7 #pragma once
8 7
9 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
10 #include "base/message_loop.h" 9 #include "base/message_loop.h"
11 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
12 11
13 namespace base { 12 namespace base {
14 class WaitableEvent; 13 class WaitableEvent;
15 } 14 }
16 15
17 // A common base class for AudioDevice and AudioInputDevice that manages 16 // A common base class for AudioDevice and AudioInputDevice that manages
(...skipping 19 matching lines...) Expand all
37 void ObserveLoopDestruction(bool enable, base::WaitableEvent* done); 36 void ObserveLoopDestruction(bool enable, base::WaitableEvent* done);
38 37
39 // A pointer to the message loop's proxy. In case the loop gets destroyed 38 // A pointer to the message loop's proxy. In case the loop gets destroyed
40 // before this object goes out of scope, PostTask etc will fail but not crash. 39 // before this object goes out of scope, PostTask etc will fail but not crash.
41 scoped_refptr<base::MessageLoopProxy> loop_; 40 scoped_refptr<base::MessageLoopProxy> loop_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(ScopedLoopObserver); 42 DISALLOW_COPY_AND_ASSIGN(ScopedLoopObserver);
44 }; 43 };
45 44
46 #endif // CONTENT_RENDERER_MEDIA_SCOPED_LOOP_OBSERVER_H_ 45 #endif // CONTENT_RENDERER_MEDIA_SCOPED_LOOP_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/renderer_gpu_video_decoder_factories.h ('k') | content/renderer/media/webrtc_audio_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698