OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Implement a simple base class for DirectShow filters. It may only be used in | 5 // Implement a simple base class for DirectShow filters. It may only be used in |
6 // a single threaded apartment. | 6 // a single threaded apartment. |
7 | 7 |
8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_FILTER_BASE_WIN_H_ | 8 #ifndef MEDIA_VIDEO_CAPTURE_WIN_FILTER_BASE_WIN_H_ |
9 #define MEDIA_VIDEO_CAPTURE_WIN_FILTER_BASE_WIN_H_ | 9 #define MEDIA_VIDEO_CAPTURE_WIN_FILTER_BASE_WIN_H_ |
10 #pragma once | |
11 | 10 |
12 // Avoid including strsafe.h via dshow as it will cause build warnings. | 11 // Avoid including strsafe.h via dshow as it will cause build warnings. |
13 #define NO_DSHOW_STRSAFE | 12 #define NO_DSHOW_STRSAFE |
14 #include <dshow.h> | 13 #include <dshow.h> |
15 | 14 |
16 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
17 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
18 | 17 |
19 namespace media { | 18 namespace media { |
20 | 19 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 private: | 64 private: |
66 FILTER_STATE state_; | 65 FILTER_STATE state_; |
67 base::win::ScopedComPtr<IFilterGraph> owning_graph_; | 66 base::win::ScopedComPtr<IFilterGraph> owning_graph_; |
68 | 67 |
69 DISALLOW_COPY_AND_ASSIGN(FilterBase); | 68 DISALLOW_COPY_AND_ASSIGN(FilterBase); |
70 }; | 69 }; |
71 | 70 |
72 } // namespace media | 71 } // namespace media |
73 | 72 |
74 #endif // MEDIA_VIDEO_CAPTURE_WIN_FILTER_BASE_WIN_H_ | 73 #endif // MEDIA_VIDEO_CAPTURE_WIN_FILTER_BASE_WIN_H_ |
OLD | NEW |