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

Side by Side Diff: chrome/browser/extensions/extension_function_test_utils.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "extensions/common/manifest.h" 11 #include "extensions/common/manifest.h"
12 12
13 class Browser; 13 class Browser;
14 class UIThreadExtensionFunction; 14 class UIThreadExtensionFunction;
15 15
16 namespace base { 16 namespace base {
17 class Value; 17 class Value;
18 class DictionaryValue; 18 class DictionaryValue;
19 class ListValue; 19 class ListValue;
20 } 20 }
21 21
22 namespace extensions {
23 class Extension;
24 }
25
26 // TODO(ckehoe): Accept args as std::unique_ptr<base::Value>, 22 // TODO(ckehoe): Accept args as std::unique_ptr<base::Value>,
27 // and migrate existing users to the new API. 23 // and migrate existing users to the new API.
28 // This file is DEPRECATED. New tests should use the versions in 24 // This file is DEPRECATED. New tests should use the versions in
29 // extensions/browser/api_test_utils.h. 25 // extensions/browser/api_test_utils.h.
30 namespace extension_function_test_utils { 26 namespace extension_function_test_utils {
31 27
32 // Parse JSON and return as the specified type, or NULL if the JSON is invalid 28 // Parse JSON and return as the specified type, or NULL if the JSON is invalid
33 // or not the specified type. 29 // or not the specified type.
34 base::Value* ParseJSON(const std::string& data); 30 base::Value* ParseJSON(const std::string& data);
35 base::ListValue* ParseList(const std::string& data); 31 base::ListValue* ParseList(const std::string& data);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 Browser* browser, 84 Browser* browser,
89 RunFunctionFlags flags); 85 RunFunctionFlags flags);
90 bool RunFunction(UIThreadExtensionFunction* function, 86 bool RunFunction(UIThreadExtensionFunction* function,
91 std::unique_ptr<base::ListValue> args, 87 std::unique_ptr<base::ListValue> args,
92 Browser* browser, 88 Browser* browser,
93 RunFunctionFlags flags); 89 RunFunctionFlags flags);
94 90
95 } // namespace extension_function_test_utils 91 } // namespace extension_function_test_utils
96 92
97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_ 93 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui.h ('k') | chrome/browser/extensions/extension_garbage_collector_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698