| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 virtual ~CastChannelGetLogsFunction(); | 225 virtual ~CastChannelGetLogsFunction(); |
| 226 | 226 |
| 227 // AsyncApiFunction: | 227 // AsyncApiFunction: |
| 228 virtual bool PrePrepare() OVERRIDE; | 228 virtual bool PrePrepare() OVERRIDE; |
| 229 virtual bool Prepare() OVERRIDE; | 229 virtual bool Prepare() OVERRIDE; |
| 230 virtual void AsyncWorkStart() OVERRIDE; | 230 virtual void AsyncWorkStart() OVERRIDE; |
| 231 | 231 |
| 232 private: | 232 private: |
| 233 DECLARE_EXTENSION_FUNCTION("cast.channel.getLogs", CAST_CHANNEL_GETLOGS) | 233 DECLARE_EXTENSION_FUNCTION("cast.channel.getLogs", CAST_CHANNEL_GETLOGS) |
| 234 | 234 |
| 235 void OnClose(int result); | |
| 236 | |
| 237 CastChannelAPI* api_; | 235 CastChannelAPI* api_; |
| 238 | 236 |
| 239 DISALLOW_COPY_AND_ASSIGN(CastChannelGetLogsFunction); | 237 DISALLOW_COPY_AND_ASSIGN(CastChannelGetLogsFunction); |
| 240 }; | 238 }; |
| 241 | 239 |
| 240 class CastChannelSetAuthorityKeysFunction : public CastChannelAsyncApiFunction { |
| 241 public: |
| 242 CastChannelSetAuthorityKeysFunction(); |
| 243 |
| 244 protected: |
| 245 virtual ~CastChannelSetAuthorityKeysFunction(); |
| 246 |
| 247 // AsyncApiFunction: |
| 248 virtual bool Prepare() OVERRIDE; |
| 249 virtual void AsyncWorkStart() OVERRIDE; |
| 250 |
| 251 private: |
| 252 DECLARE_EXTENSION_FUNCTION("cast.channel.setAuthorityKeys", |
| 253 CAST_CHANNEL_SETAUTHORITYKEYS) |
| 254 |
| 255 scoped_ptr<cast_channel::SetAuthorityKeys::Params> params_; |
| 256 |
| 257 DISALLOW_COPY_AND_ASSIGN(CastChannelSetAuthorityKeysFunction); |
| 258 }; |
| 259 |
| 242 } // namespace extensions | 260 } // namespace extensions |
| 243 | 261 |
| 244 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 262 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
| OLD | NEW |