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

Unified Diff: extensions/browser/api/display_source/display_source_connection_delegate.h

Issue 1841483002: [Extensions] Convert APIs to use movable types [11] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/display_source/display_source_connection_delegate.h
diff --git a/extensions/browser/api/display_source/display_source_connection_delegate.h b/extensions/browser/api/display_source/display_source_connection_delegate.h
index 1133cdfca5d61ada0d4b09da7e668056ae056a49..a1a3106beb8e5f9090c86b75f4882b6ee6a22860 100644
--- a/extensions/browser/api/display_source/display_source_connection_delegate.h
+++ b/extensions/browser/api/display_source/display_source_connection_delegate.h
@@ -12,8 +12,8 @@
namespace extensions {
-using DisplaySourceSinkInfoPtr = linked_ptr<api::display_source::SinkInfo>;
-using DisplaySourceSinkInfoList = std::vector<DisplaySourceSinkInfoPtr>;
+using DisplaySourceSinkInfo = api::display_source::SinkInfo;
+using DisplaySourceSinkInfoList = std::vector<DisplaySourceSinkInfo>;
using DisplaySourceAuthInfo = api::display_source::AuthenticationInfo;
using DisplaySourceErrorType = api::display_source::ErrorType;
// The DisplaySourceConnectionDelegate interface should be implemented
@@ -30,9 +30,8 @@ class DisplaySourceConnectionDelegate : public KeyedService {
class Connection {
public:
- // Returns a pointer to the connected sink object. The result is
- // guaranteed not to be NULL.
- virtual DisplaySourceSinkInfoPtr GetConnectedSink() const = 0;
+ // Returns the connected sink object.
+ virtual DisplaySourceSinkInfo GetConnectedSink() const = 0;
// Returns the local address of the source.
virtual std::string GetLocalAddress() const = 0;
@@ -87,7 +86,7 @@ class DisplaySourceConnectionDelegate : public KeyedService {
// is not watching the sinks (via 'StartWatchingSinks'
// method). The list is refreshed after 'GetAvailableSinks'
// call.
- virtual DisplaySourceSinkInfoList last_found_sinks() const = 0;
+ virtual const DisplaySourceSinkInfoList& last_found_sinks() const = 0;
// Returns the Connection object representing the current
// connection to the sink or NULL if there is no current connection.
« no previous file with comments | « extensions/browser/api/display_source/display_source_apitest.cc ('k') | extensions/browser/api/hid/hid_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698