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

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: ADd missing files 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 private: 212 private:
213 DECLARE_EXTENSION_FUNCTION("cast.channel.close", CAST_CHANNEL_CLOSE) 213 DECLARE_EXTENSION_FUNCTION("cast.channel.close", CAST_CHANNEL_CLOSE)
214 214
215 void OnClose(int result); 215 void OnClose(int result);
216 216
217 scoped_ptr<cast_channel::Close::Params> params_; 217 scoped_ptr<cast_channel::Close::Params> params_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction); 219 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction);
220 }; 220 };
221 221
222 class CastChannelGetLogsFunction : public CastChannelAsyncApiFunction {
223 public:
224 CastChannelGetLogsFunction();
225
226 protected:
227 virtual ~CastChannelGetLogsFunction();
228
229 // AsyncApiFunction:
230 virtual bool PrePrepare() OVERRIDE;
231 virtual bool Prepare() OVERRIDE;
232 virtual void AsyncWorkStart() OVERRIDE;
233
234 private:
235 DECLARE_EXTENSION_FUNCTION("cast.channel.getLogs", CAST_CHANNEL_GETLOGS)
236
237 void OnClose(int result);
238
239 CastChannelAPI* api_;
240
241 DISALLOW_COPY_AND_ASSIGN(CastChannelGetLogsFunction);
242 };
243
222 } // namespace extensions 244 } // namespace extensions
223 245
224 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ 246 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698