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

Side by Side Diff: content/browser/presentation/presentation_service_impl.h

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: rebase Created 3 years, 11 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 CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 MaxPendingJoinSessionRequests); 93 MaxPendingJoinSessionRequests);
94 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, 94 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest,
95 ListenForConnectionStateChangeAndChangeState); 95 ListenForConnectionStateChangeAndChangeState);
96 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, 96 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest,
97 ListenForConnectionClose); 97 ListenForConnectionClose);
98 98
99 // Maximum number of pending JoinSession requests at any given time. 99 // Maximum number of pending JoinSession requests at any given time.
100 static const int kMaxNumQueuedSessionRequests = 10; 100 static const int kMaxNumQueuedSessionRequests = 10;
101 101
102 using ConnectionMessagesCallback = 102 using ConnectionMessagesCallback =
103 base::Callback<void(mojo::Array<blink::mojom::ConnectionMessagePtr>)>; 103 base::Callback<void(std::vector<blink::mojom::ConnectionMessagePtr>)>;
104 using SendConnectionMessageCallback = base::Callback<void(bool)>; 104 using SendConnectionMessageCallback = base::Callback<void(bool)>;
105 105
106 // Listener implementation owned by PresentationServiceImpl. An instance of 106 // Listener implementation owned by PresentationServiceImpl. An instance of
107 // this is created when PresentationRequest.getAvailability() is resolved. 107 // this is created when PresentationRequest.getAvailability() is resolved.
108 // The instance receives screen availability results from the embedder and 108 // The instance receives screen availability results from the embedder and
109 // propagates results back to PresentationServiceImpl. 109 // propagates results back to PresentationServiceImpl.
110 class CONTENT_EXPORT ScreenAvailabilityListenerImpl 110 class CONTENT_EXPORT ScreenAvailabilityListenerImpl
111 : public PresentationScreenAvailabilityListener { 111 : public PresentationScreenAvailabilityListener {
112 public: 112 public:
113 ScreenAvailabilityListenerImpl(const GURL& availability_url, 113 ScreenAvailabilityListenerImpl(const GURL& availability_url,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 // NOTE: Weak pointers must be invalidated before all other member variables. 289 // NOTE: Weak pointers must be invalidated before all other member variables.
290 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; 290 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_;
291 291
292 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); 292 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl);
293 }; 293 };
294 294
295 } // namespace content 295 } // namespace content
296 296
297 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ 297 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698