OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 private: | 213 private: |
214 DECLARE_EXTENSION_FUNCTION("cast.channel.close", CAST_CHANNEL_CLOSE) | 214 DECLARE_EXTENSION_FUNCTION("cast.channel.close", CAST_CHANNEL_CLOSE) |
215 | 215 |
216 void OnClose(int result); | 216 void OnClose(int result); |
217 | 217 |
218 scoped_ptr<cast_channel::Close::Params> params_; | 218 scoped_ptr<cast_channel::Close::Params> params_; |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction); | 220 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction); |
221 }; | 221 }; |
222 | 222 |
| 223 class CastChannelGetLogsFunction : public CastChannelAsyncApiFunction { |
| 224 public: |
| 225 CastChannelGetLogsFunction(); |
| 226 |
| 227 protected: |
| 228 virtual ~CastChannelGetLogsFunction(); |
| 229 |
| 230 // AsyncApiFunction: |
| 231 virtual bool PrePrepare() OVERRIDE; |
| 232 virtual bool Prepare() OVERRIDE; |
| 233 virtual void AsyncWorkStart() OVERRIDE; |
| 234 |
| 235 private: |
| 236 DECLARE_EXTENSION_FUNCTION("cast.channel.getLogs", CAST_CHANNEL_GETLOGS) |
| 237 |
| 238 void OnClose(int result); |
| 239 |
| 240 CastChannelAPI* api_; |
| 241 |
| 242 DISALLOW_COPY_AND_ASSIGN(CastChannelGetLogsFunction); |
| 243 }; |
| 244 |
223 } // namespace extensions | 245 } // namespace extensions |
224 | 246 |
225 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 247 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
OLD | NEW |