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

Side by Side Diff: chrome/browser/chromeos/extensions/info_private_api.h

Issue 11369258: Revert 167808 - Get rid of use of CreateStringValue in chromeos/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_CHROMEOS_EXTENSIONS_INFO_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INFO_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INFO_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INFO_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/extensions/extension_function.h" 11 #include "chrome/browser/extensions/extension_function.h"
12 12
13 namespace base {
14 class Value;
15 }
16
17 namespace extensions { 13 namespace extensions {
18 14
19 class GetChromeosInfoFunction : public AsyncExtensionFunction { 15 class GetChromeosInfoFunction : public AsyncExtensionFunction {
20 public: 16 public:
21 GetChromeosInfoFunction(); 17 GetChromeosInfoFunction();
22 18
23 protected: 19 protected:
24 virtual ~GetChromeosInfoFunction(); 20 virtual ~GetChromeosInfoFunction();
25 21
26 virtual bool RunImpl() OVERRIDE; 22 virtual bool RunImpl() OVERRIDE;
27 23
28 private: 24 private:
29 // Returns a newly allocate value, or null. 25 bool GetValue(const std::string& property_name, Value** value);
30 base::Value* GetValue(const std::string& property_name);
31 26
32 DECLARE_EXTENSION_FUNCTION_NAME("chromeosInfoPrivate.get"); 27 DECLARE_EXTENSION_FUNCTION_NAME("chromeosInfoPrivate.get");
33 }; 28 };
34 29
35 } // namespace extensions 30 } // namespace extensions
36 31
37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INFO_PRIVATE_API_H_ 32 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INFO_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager_util.cc ('k') | chrome/browser/chromeos/extensions/info_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698