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

Side by Side Diff: extensions/common/api/sockets/sockets_manifest_handler.h

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 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_MANIFEST_HANDLER_H_ 5 #ifndef EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_
6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_ 6 #define EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "extensions/common/manifest_handler.h" 11 #include "extensions/common/manifest_handler.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 class Extension; 14 class Extension;
15 class ManifestPermission; 15 class ManifestPermission;
16 } 16 }
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 // Parses the "sockets" manifest key. 20 // Parses the "sockets" manifest key.
21 class SocketsManifestHandler : public ManifestHandler { 21 class SocketsManifestHandler : public ManifestHandler {
22 public: 22 public:
23 SocketsManifestHandler(); 23 SocketsManifestHandler();
24 virtual ~SocketsManifestHandler(); 24 virtual ~SocketsManifestHandler();
25 25
26 // ManifestHandler overrides. 26 // ManifestHandler overrides.
27 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; 27 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE;
28 virtual ManifestPermission* CreatePermission() OVERRIDE; 28 virtual ManifestPermission* CreatePermission() OVERRIDE;
29 virtual ManifestPermission* CreateInitialRequiredPermission( 29 virtual ManifestPermission* CreateInitialRequiredPermission(
30 const Extension* extension) OVERRIDE; 30 const Extension* extension) OVERRIDE;
31 31
32 private: 32 private:
33 // ManifestHandler overrides. 33 // ManifestHandler overrides.
34 virtual const std::vector<std::string> Keys() const OVERRIDE; 34 virtual const std::vector<std::string> Keys() const OVERRIDE;
35 35
36 DISALLOW_COPY_AND_ASSIGN(SocketsManifestHandler); 36 DISALLOW_COPY_AND_ASSIGN(SocketsManifestHandler);
37 }; 37 };
38 38
39 } // namespace extensions 39 } // namespace extensions
40 40
41 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_ 41 #endif // EXTENSIONS_COMMON_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_
OLDNEW
« no previous file with comments | « extensions/common/api/sockets/sockets_manifest_data.cc ('k') | extensions/common/api/sockets/sockets_manifest_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698