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.cc

Issue 217263002: Move sockets manifest types to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_udp/sockets_udp_api.h" 5 #include "extensions/browser/api/sockets_udp/sockets_udp_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/udp_socket.h" 8 #include "extensions/browser/api/socket/udp_socket.h"
10 #include "extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.h" 9 #include "extensions/browser/api/sockets_udp/udp_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 namespace extensions { 13 namespace extensions {
14 namespace core_api { 14 namespace core_api {
15 15
16 using content::SocketPermissionRequest; 16 using content::SocketPermissionRequest;
17 17
18 const char kSocketNotFoundError[] = "Socket not found"; 18 const char kSocketNotFoundError[] = "Socket not found";
19 const char kPermissionError[] = "App does not have permission"; 19 const char kPermissionError[] = "App does not have permission";
20 const char kWildcardAddress[] = "*"; 20 const char kWildcardAddress[] = "*";
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 error_ = kPermissionError; 496 error_ = kPermissionError;
497 return; 497 return;
498 } 498 }
499 499
500 const std::vector<std::string>& groups = socket->GetJoinedGroups(); 500 const std::vector<std::string>& groups = socket->GetJoinedGroups();
501 results_ = sockets_udp::GetJoinedGroups::Results::Create(groups); 501 results_ = sockets_udp::GetJoinedGroups::Results::Create(groups);
502 } 502 }
503 503
504 } // namespace core_api 504 } // namespace core_api
505 } // namespace extensions 505 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698