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

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

Issue 105473003: Add explicit base namespace to string16 users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_DATA_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_DATA_H_
6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_DATA_H_ 6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 21 matching lines...) Expand all
32 // specified. 32 // specified.
33 static SocketsManifestData* Get(const Extension* extension); 33 static SocketsManifestData* Get(const Extension* extension);
34 34
35 static bool CheckRequest(const Extension* extension, 35 static bool CheckRequest(const Extension* extension,
36 const content::SocketPermissionRequest& request); 36 const content::SocketPermissionRequest& request);
37 37
38 // Tries to construct the info based on |value|, as it would have appeared in 38 // Tries to construct the info based on |value|, as it would have appeared in
39 // the manifest. Sets |error| and returns an empty scoped_ptr on failure. 39 // the manifest. Sets |error| and returns an empty scoped_ptr on failure.
40 static scoped_ptr<SocketsManifestData> FromValue( 40 static scoped_ptr<SocketsManifestData> FromValue(
41 const base::Value& value, 41 const base::Value& value,
42 string16* error); 42 base::string16* error);
43 43
44 const SocketsManifestPermission* permission() const { 44 const SocketsManifestPermission* permission() const {
45 return permission_.get(); 45 return permission_.get();
46 } 46 }
47 47
48 private: 48 private:
49 scoped_ptr<SocketsManifestPermission> permission_; 49 scoped_ptr<SocketsManifestPermission> permission_;
50 }; 50 };
51 51
52 } // namespace extensions 52 } // namespace extensions
53 53
54 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_DATA_H_ 54 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_DATA_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/plugins/plugins_handler.cc ('k') | chrome/common/extensions/api/sockets/sockets_manifest_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698