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

Side by Side Diff: chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h

Issue 177003015: Pull AsyncApiFunction out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for storage_api 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_UDP_SOCKET_EVENT_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_
7 7
8 #include "chrome/browser/extensions/api/api_resource_manager.h" 8 #include "chrome/browser/extensions/api/api_resource_manager.h"
9 #include "chrome/browser/extensions/api/sockets_udp/sockets_udp_api.h" 9 #include "chrome/browser/extensions/api/sockets_udp/sockets_udp_api.h"
10 10
11 class Profile;
12
11 namespace extensions { 13 namespace extensions {
12 struct Event; 14 struct Event;
13 class ResumableUDPSocket; 15 class ResumableUDPSocket;
14 } 16 }
15 17
16 namespace extensions { 18 namespace extensions {
17 namespace api { 19 namespace api {
18 20
19 // Dispatch events related to "sockets.udp" sockets from callback on native 21 // Dispatch events related to "sockets.udp" sockets from callback on native
20 // socket instances. There is one instance per profile. 22 // socket instances. There is one instance per profile.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Usually IO thread (except for unit testing). 83 // Usually IO thread (except for unit testing).
82 content::BrowserThread::ID thread_id_; 84 content::BrowserThread::ID thread_id_;
83 Profile* const profile_; 85 Profile* const profile_;
84 scoped_refptr<SocketData> sockets_; 86 scoped_refptr<SocketData> sockets_;
85 }; 87 };
86 88
87 } // namespace api 89 } // namespace api
88 } // namespace extensions 90 } // namespace extensions
89 91
90 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER _H_ 92 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698