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

Side by Side Diff: chrome/common/extensions/api/sockets/sockets_handler.h

Issue 60393005: Revert 232631 - Revert 232499 "Move ManifestHandler to top-level extensions." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps 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 #ifndef CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_
6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ 6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/common/extensions/extension.h" 9 #include "chrome/common/extensions/extension.h"
10 #include "chrome/common/extensions/manifest_handler.h"
11 #include "chrome/common/extensions/permissions/socket_permission_data.h" 10 #include "chrome/common/extensions/permissions/socket_permission_data.h"
11 #include "extensions/common/manifest_handler.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 // Parses the "sockets" manifest key. 15 // Parses the "sockets" manifest key.
16 class SocketsHandler : public ManifestHandler { 16 class SocketsHandler : public ManifestHandler {
17 public: 17 public:
18 SocketsHandler(); 18 SocketsHandler();
19 virtual ~SocketsHandler(); 19 virtual ~SocketsHandler();
20 20
21 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; 21 virtual bool Parse(Extension* extension, string16* error) OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 bool CheckRequestImpl(const Extension* extension, 60 bool CheckRequestImpl(const Extension* extension,
61 const content::SocketPermissionRequest& request); 61 const content::SocketPermissionRequest& request);
62 62
63 PermissionSet permissions_; 63 PermissionSet permissions_;
64 }; 64 };
65 65
66 } // namespace extensions 66 } // namespace extensions
67 67
68 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ 68 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698