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

Side by Side Diff: extensions/browser/api/sockets_tcp/sockets_tcp_api.cc

Issue 217263002: Move sockets manifest types to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename, add new "API" for extensionsManifestTypes Created 6 years, 8 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 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 #include "extensions/browser/api/sockets_tcp/sockets_tcp_api.h" 5 #include "extensions/browser/api/sockets_tcp/sockets_tcp_api.h"
6 6
7 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h"
8 #include "content/public/common/socket_permission_request.h" 7 #include "content/public/common/socket_permission_request.h"
9 #include "extensions/browser/api/socket/tcp_socket.h" 8 #include "extensions/browser/api/socket/tcp_socket.h"
10 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h" 9 #include "extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.h"
10 #include "extensions/common/api/sockets/sockets_manifest_data.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 12
13 using extensions::ResumableTCPSocket; 13 using extensions::ResumableTCPSocket;
14 using extensions::core_api::sockets_tcp::SocketInfo; 14 using extensions::core_api::sockets_tcp::SocketInfo;
15 using extensions::core_api::sockets_tcp::SocketProperties; 15 using extensions::core_api::sockets_tcp::SocketProperties;
16 16
17 namespace { 17 namespace {
18 18
19 const char kSocketNotFoundError[] = "Socket not found"; 19 const char kSocketNotFoundError[] = "Socket not found";
20 const char kPermissionError[] = "Does not have permission"; 20 const char kPermissionError[] = "Does not have permission";
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 if (socket) { 436 if (socket) {
437 socket_infos.push_back(CreateSocketInfo(socket_id, socket)); 437 socket_infos.push_back(CreateSocketInfo(socket_id, socket));
438 } 438 }
439 } 439 }
440 } 440 }
441 results_ = sockets_tcp::GetSockets::Results::Create(socket_infos); 441 results_ = sockets_tcp::GetSockets::Results::Create(socket_infos);
442 } 442 }
443 443
444 } // namespace core_api 444 } // namespace core_api
445 } // namespace extensions 445 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/DEPS ('k') | extensions/browser/api/sockets_tcp_server/sockets_tcp_server_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698