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

Side by Side Diff: extensions/browser/api/sockets_udp/sockets_udp_api.h

Issue 183893041: Move sockets APIs out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename api targets Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ 6 #define EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_
7 7
8 #include "chrome/browser/extensions/api/socket/socket_api.h" 8 #include "extensions/browser/api/socket/socket_api.h"
9 #include "chrome/common/extensions/api/sockets_udp.h" 9 #include "extensions/common/api/sockets_udp.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 class ResumableUDPSocket; 12 class ResumableUDPSocket;
13 } 13 }
14 14
15 namespace extensions { 15 namespace extensions {
16 namespace api { 16 namespace core_api {
17 17
18 class UDPSocketEventDispatcher; 18 class UDPSocketEventDispatcher;
19 19
20 class UDPSocketAsyncApiFunction : public SocketAsyncApiFunction { 20 class UDPSocketAsyncApiFunction : public SocketAsyncApiFunction {
21 protected: 21 protected:
22 virtual ~UDPSocketAsyncApiFunction(); 22 virtual ~UDPSocketAsyncApiFunction();
23 23
24 virtual scoped_ptr<SocketResourceManagerInterface> 24 virtual scoped_ptr<SocketResourceManagerInterface>
25 CreateSocketResourceManager() OVERRIDE; 25 CreateSocketResourceManager() OVERRIDE;
26 26
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual ~SocketsUdpUpdateFunction(); 66 virtual ~SocketsUdpUpdateFunction();
67 67
68 // AsyncApiFunction: 68 // AsyncApiFunction:
69 virtual bool Prepare() OVERRIDE; 69 virtual bool Prepare() OVERRIDE;
70 virtual void Work() OVERRIDE; 70 virtual void Work() OVERRIDE;
71 71
72 private: 72 private:
73 scoped_ptr<sockets_udp::Update::Params> params_; 73 scoped_ptr<sockets_udp::Update::Params> params_;
74 }; 74 };
75 75
76 class SocketsUdpSetPausedFunction 76 class SocketsUdpSetPausedFunction : public UDPSocketAsyncApiFunction {
77 : public UDPSocketAsyncApiFunction {
78 public: 77 public:
79 DECLARE_EXTENSION_FUNCTION("sockets.udp.setPaused", SOCKETS_UDP_SETPAUSED) 78 DECLARE_EXTENSION_FUNCTION("sockets.udp.setPaused", SOCKETS_UDP_SETPAUSED)
80 79
81 SocketsUdpSetPausedFunction(); 80 SocketsUdpSetPausedFunction();
82 81
83 protected: 82 protected:
84 virtual ~SocketsUdpSetPausedFunction(); 83 virtual ~SocketsUdpSetPausedFunction();
85 84
86 // AsyncApiFunction 85 // AsyncApiFunction
87 virtual bool Prepare() OVERRIDE; 86 virtual bool Prepare() OVERRIDE;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 virtual ~SocketsUdpGetJoinedGroupsFunction(); 266 virtual ~SocketsUdpGetJoinedGroupsFunction();
268 267
269 // AsyncApiFunction 268 // AsyncApiFunction
270 virtual bool Prepare() OVERRIDE; 269 virtual bool Prepare() OVERRIDE;
271 virtual void Work() OVERRIDE; 270 virtual void Work() OVERRIDE;
272 271
273 private: 272 private:
274 scoped_ptr<sockets_udp::GetJoinedGroups::Params> params_; 273 scoped_ptr<sockets_udp::GetJoinedGroups::Params> params_;
275 }; 274 };
276 275
277 } // namespace api 276 } // namespace core_api
278 } // namespace extensions 277 } // namespace extensions
279 278
280 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ 279 #endif // EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/sockets_udp/sockets_udp/OWNERS ('k') | extensions/browser/api/sockets_udp/sockets_udp_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698