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

Side by Side Diff: extensions/renderer/api/display_source/display_source_session.h

Issue 1899083003: Convert //extensions/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_SESSION_H_ 5 #ifndef EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_SESSION_H_
6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_SESSION_H_ 6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_SESSION_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "extensions/common/api/display_source.h" 13 #include "extensions/common/api/display_source.h"
14 #include "third_party/WebKit/public/web/WebDOMMediaStreamTrack.h" 14 #include "third_party/WebKit/public/web/WebDOMMediaStreamTrack.h"
15 15
16 namespace content { 16 namespace content {
17 class RenderFrame; 17 class RenderFrame;
18 } 18 }
19 19
20 namespace extensions { 20 namespace extensions {
21 21
22 using DisplaySourceAuthInfo = api::display_source::AuthenticationInfo; 22 using DisplaySourceAuthInfo = api::display_source::AuthenticationInfo;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 int sink_id; 101 int sink_id;
102 blink::WebMediaStreamTrack video_track; 102 blink::WebMediaStreamTrack video_track;
103 blink::WebMediaStreamTrack audio_track; 103 blink::WebMediaStreamTrack audio_track;
104 DisplaySourceAuthMethod auth_method; 104 DisplaySourceAuthMethod auth_method;
105 std::string auth_data; 105 std::string auth_data;
106 content::RenderFrame* render_frame; 106 content::RenderFrame* render_frame;
107 }; 107 };
108 108
109 class DisplaySourceSessionFactory { 109 class DisplaySourceSessionFactory {
110 public: 110 public:
111 static scoped_ptr<DisplaySourceSession> CreateSession( 111 static std::unique_ptr<DisplaySourceSession> CreateSession(
112 const DisplaySourceSessionParams& params); 112 const DisplaySourceSessionParams& params);
113
113 private: 114 private:
114 DISALLOW_COPY_AND_ASSIGN(DisplaySourceSessionFactory); 115 DISALLOW_COPY_AND_ASSIGN(DisplaySourceSessionFactory);
115 }; 116 };
116 117
117 } // namespace extensions 118 } // namespace extensions
118 119
119 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_SESSION_H_ 120 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_DISPLAY_SOURCE_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698