OLD | NEW |
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void StopListeningForScreenAvailability(const GURL& url) override; | 73 void StopListeningForScreenAvailability(const GURL& url) override; |
74 void StartPresentation(const std::vector<GURL>& presentation_urls, | 74 void StartPresentation(const std::vector<GURL>& presentation_urls, |
75 NewPresentationCallback callback) override; | 75 NewPresentationCallback callback) override; |
76 void ReconnectPresentation(const std::vector<GURL>& presentation_urls, | 76 void ReconnectPresentation(const std::vector<GURL>& presentation_urls, |
77 const base::Optional<std::string>& presentation_id, | 77 const base::Optional<std::string>& presentation_id, |
78 NewPresentationCallback callback) override; | 78 NewPresentationCallback callback) override; |
79 void CloseConnection(const GURL& presentation_url, | 79 void CloseConnection(const GURL& presentation_url, |
80 const std::string& presentation_id) override; | 80 const std::string& presentation_id) override; |
81 void Terminate(const GURL& presentation_url, | 81 void Terminate(const GURL& presentation_url, |
82 const std::string& presentation_id) override; | 82 const std::string& presentation_id) override; |
83 void ListenForConnectionMessages( | |
84 const PresentationInfo& presentation_info) override; | |
85 void SetPresentationConnection( | 83 void SetPresentationConnection( |
86 const PresentationInfo& presentation_info, | 84 const PresentationInfo& presentation_info, |
87 blink::mojom::PresentationConnectionPtr controller_connection_ptr, | 85 blink::mojom::PresentationConnectionPtr controller_connection_ptr, |
88 blink::mojom::PresentationConnectionRequest receiver_connection_request) | 86 blink::mojom::PresentationConnectionRequest receiver_connection_request) |
89 override; | 87 override; |
90 | 88 |
91 private: | 89 private: |
92 friend class PresentationServiceImplTest; | 90 friend class PresentationServiceImplTest; |
93 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, Reset); | 91 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, Reset); |
94 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, ThisRenderFrameDeleted); | 92 FRIEND_TEST_ALL_PREFIXES(PresentationServiceImplTest, ThisRenderFrameDeleted); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 280 |
283 // NOTE: Weak pointers must be invalidated before all other member variables. | 281 // NOTE: Weak pointers must be invalidated before all other member variables. |
284 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; | 282 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; |
285 | 283 |
286 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); | 284 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
287 }; | 285 }; |
288 | 286 |
289 } // namespace content | 287 } // namespace content |
290 | 288 |
291 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 289 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
OLD | NEW |