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 <string> | 10 #include <string> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 : public PresentationScreenAvailabilityListener { | 111 : public PresentationScreenAvailabilityListener { |
112 public: | 112 public: |
113 ScreenAvailabilityListenerImpl( | 113 ScreenAvailabilityListenerImpl( |
114 const std::string& availability_url, | 114 const std::string& availability_url, |
115 PresentationServiceImpl* service); | 115 PresentationServiceImpl* service); |
116 ~ScreenAvailabilityListenerImpl() override; | 116 ~ScreenAvailabilityListenerImpl() override; |
117 | 117 |
118 // PresentationScreenAvailabilityListener implementation. | 118 // PresentationScreenAvailabilityListener implementation. |
119 std::string GetAvailabilityUrl() const override; | 119 std::string GetAvailabilityUrl() const override; |
120 void OnScreenAvailabilityChanged(bool available) override; | 120 void OnScreenAvailabilityChanged(bool available) override; |
| 121 void OnScreenAvailabilityNotSupported() override; |
121 | 122 |
122 private: | 123 private: |
123 const std::string availability_url_; | 124 const std::string availability_url_; |
124 PresentationServiceImpl* const service_; | 125 PresentationServiceImpl* const service_; |
125 }; | 126 }; |
126 | 127 |
127 class CONTENT_EXPORT DefaultSessionStartContext { | 128 class CONTENT_EXPORT DefaultSessionStartContext { |
128 public: | 129 public: |
129 DefaultSessionStartContext(); | 130 DefaultSessionStartContext(); |
130 ~DefaultSessionStartContext(); | 131 ~DefaultSessionStartContext(); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 301 |
301 // NOTE: Weak pointers must be invalidated before all other member variables. | 302 // NOTE: Weak pointers must be invalidated before all other member variables. |
302 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; | 303 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; |
303 | 304 |
304 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); | 305 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
305 }; | 306 }; |
306 | 307 |
307 } // namespace content | 308 } // namespace content |
308 | 309 |
309 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 310 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
OLD | NEW |