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

Side by Side Diff: extensions/browser/api/cast_channel/cast_channel_api.h

Issue 456213002: Cast channel: Add cast.channel.getLogs extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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 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
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_
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/DEPS ('k') | extensions/browser/api/cast_channel/cast_channel_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698