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

Side by Side Diff: device/capture/video/win/pin_base_win.h

Issue 2214533002: move //media/capture to //device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « device/capture/video/win/filter_base_win.cc ('k') | device/capture/video/win/pin_base_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Implement a simple base class for a DirectShow input pin. It may only be 5 // Implement a simple base class for a DirectShow input pin. It may only be
6 // used in a single threaded apartment. 6 // used in a single threaded apartment.
7 7
8 #ifndef MEDIA_CAPTURE_VIDEO_WIN_PIN_BASE_WIN_H_ 8 #ifndef DEVICE_CAPTURE_VIDEO_WIN_PIN_BASE_WIN_H_
9 #define MEDIA_CAPTURE_VIDEO_WIN_PIN_BASE_WIN_H_ 9 #define DEVICE_CAPTURE_VIDEO_WIN_PIN_BASE_WIN_H_
10 10
11 // 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.
12 #define NO_DSHOW_STRSAFE 12 #define NO_DSHOW_STRSAFE
13 #include <dshow.h> 13 #include <dshow.h>
14 14
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/win/scoped_comptr.h" 16 #include "base/win/scoped_comptr.h"
17 17
18 namespace media { 18 namespace device {
19 19
20 class PinBase : public IPin, 20 class PinBase : public IPin,
21 public IMemInputPin, 21 public IMemInputPin,
22 public base::RefCounted<PinBase> { 22 public base::RefCounted<PinBase> {
23 public: 23 public:
24 explicit PinBase(IBaseFilter* owner); 24 explicit PinBase(IBaseFilter* owner);
25 25
26 // Function used for changing the owner. 26 // Function used for changing the owner.
27 // If the owner is deleted the owner should first call this function 27 // If the owner is deleted the owner should first call this function
28 // with owner = NULL. 28 // with owner = NULL.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual ~PinBase(); 99 virtual ~PinBase();
100 100
101 private: 101 private:
102 AM_MEDIA_TYPE current_media_type_; 102 AM_MEDIA_TYPE current_media_type_;
103 base::win::ScopedComPtr<IPin> connected_pin_; 103 base::win::ScopedComPtr<IPin> connected_pin_;
104 // owner_ is the filter owning this pin. We don't reference count it since 104 // owner_ is the filter owning this pin. We don't reference count it since
105 // that would create a circular reference count. 105 // that would create a circular reference count.
106 IBaseFilter* owner_; 106 IBaseFilter* owner_;
107 }; 107 };
108 108
109 } // namespace media 109 } // namespace device
110 110
111 #endif // MEDIA_CAPTURE_VIDEO_WIN_PIN_BASE_WIN_H_ 111 #endif // DEVICE_CAPTURE_VIDEO_WIN_PIN_BASE_WIN_H_
OLDNEW
« no previous file with comments | « device/capture/video/win/filter_base_win.cc ('k') | device/capture/video/win/pin_base_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698