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

Side by Side Diff: chrome/common/extensions/api/sockets/sockets_manifest_handler.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 #include "chrome/common/extensions/api/sockets/sockets_manifest_handler.h" 5 #include "chrome/common/extensions/api/sockets/sockets_manifest_handler.h"
6 6
7 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h" 7 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h"
8 #include "chrome/common/extensions/api/sockets/sockets_manifest_permission.h" 8 #include "chrome/common/extensions/api/sockets/sockets_manifest_permission.h"
9 #include "chrome/common/extensions/extension.h" 9 #include "extensions/common/extension.h"
10 #include "extensions/common/manifest_constants.h" 10 #include "extensions/common/manifest_constants.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 SocketsManifestHandler::SocketsManifestHandler() {} 14 SocketsManifestHandler::SocketsManifestHandler() {}
15 15
16 SocketsManifestHandler::~SocketsManifestHandler() {} 16 SocketsManifestHandler::~SocketsManifestHandler() {}
17 17
18 bool SocketsManifestHandler::Parse(Extension* extension, string16* error) { 18 bool SocketsManifestHandler::Parse(Extension* extension, string16* error) {
19 const base::Value* sockets = NULL; 19 const base::Value* sockets = NULL;
(...skipping 17 matching lines...) Expand all
37 if (data) 37 if (data)
38 return data->permission()->Clone(); 38 return data->permission()->Clone();
39 return NULL; 39 return NULL;
40 } 40 }
41 41
42 const std::vector<std::string> SocketsManifestHandler::Keys() const { 42 const std::vector<std::string> SocketsManifestHandler::Keys() const {
43 return SingleKey(manifest_keys::kSockets); 43 return SingleKey(manifest_keys::kSockets);
44 } 44 }
45 45
46 } // namespace extensions 46 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698