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

Side by Side Diff: webrtc/modules/desktop_capture/win/desktop.h

Issue 1743203002: Replace scoped_ptr with unique_ptr in webrtc/modules/desktop_capture/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: More Windows reverts Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DESKTOP_H_ 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DESKTOP_H_
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DESKTOP_H_ 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DESKTOP_H_
13 13
14 #include <windows.h> 14 #include <windows.h>
15 #include <string> 15 #include <string>
16 16
17 #include "webrtc/base/constructormagic.h" 17 #include "webrtc/base/constructormagic.h"
18 #include "webrtc/base/scoped_ptr.h"
19 18
20 namespace webrtc { 19 namespace webrtc {
21 20
22 class Desktop { 21 class Desktop {
23 public: 22 public:
24 ~Desktop(); 23 ~Desktop();
25 24
26 // Returns the name of the desktop represented by the object. Return false if 25 // Returns the name of the desktop represented by the object. Return false if
27 // quering the name failed for any reason. 26 // quering the name failed for any reason.
28 bool GetName(std::wstring* desktop_name_out) const; 27 bool GetName(std::wstring* desktop_name_out) const;
(...skipping 26 matching lines...) Expand all
55 54
56 // True if |desktop_| must be closed on teardown. 55 // True if |desktop_| must be closed on teardown.
57 bool own_; 56 bool own_;
58 57
59 RTC_DISALLOW_COPY_AND_ASSIGN(Desktop); 58 RTC_DISALLOW_COPY_AND_ASSIGN(Desktop);
60 }; 59 };
61 60
62 } // namespace webrtc 61 } // namespace webrtc
63 62
64 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DESKTOP_H_ 63 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698