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

Side by Side Diff: chrome/browser/extensions/api/idltest/idltest_api.h

Issue 2282063002: [Extensions] Convert some SyncExtensionFunctions (Closed)
Patch Set: revert Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/idltest/idltest_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_API_IDLTEST_IDLTEST_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_
7 7
8 #include "extensions/browser/extension_function.h" 8 #include "extensions/browser/extension_function.h"
9 9
10 class IdltestSendArrayBufferFunction : public SyncExtensionFunction { 10 class IdltestSendArrayBufferFunction : public UIThreadExtensionFunction {
11 public: 11 public:
12 DECLARE_EXTENSION_FUNCTION("idltest.sendArrayBuffer", IDLTEST_SENDARRAYBUFFER) 12 DECLARE_EXTENSION_FUNCTION("idltest.sendArrayBuffer", IDLTEST_SENDARRAYBUFFER)
13 13
14 protected: 14 protected:
15 ~IdltestSendArrayBufferFunction() override {} 15 ~IdltestSendArrayBufferFunction() override {}
16 bool RunSync() override; 16 ResponseAction Run() override;
17 }; 17 };
18 18
19 class IdltestSendArrayBufferViewFunction : public SyncExtensionFunction { 19 class IdltestSendArrayBufferViewFunction : public UIThreadExtensionFunction {
20 public: 20 public:
21 DECLARE_EXTENSION_FUNCTION("idltest.sendArrayBufferView", 21 DECLARE_EXTENSION_FUNCTION("idltest.sendArrayBufferView",
22 IDLTEST_SENDARRAYBUFFERVIEW) 22 IDLTEST_SENDARRAYBUFFERVIEW)
23 23
24 protected: 24 protected:
25 ~IdltestSendArrayBufferViewFunction() override {} 25 ~IdltestSendArrayBufferViewFunction() override {}
26 bool RunSync() override; 26 ResponseAction Run() override;
27 }; 27 };
28 28
29 class IdltestGetArrayBufferFunction : public SyncExtensionFunction { 29 class IdltestGetArrayBufferFunction : public UIThreadExtensionFunction {
30 public: 30 public:
31 DECLARE_EXTENSION_FUNCTION("idltest.getArrayBuffer", IDLTEST_GETARRAYBUFFER) 31 DECLARE_EXTENSION_FUNCTION("idltest.getArrayBuffer", IDLTEST_GETARRAYBUFFER)
32 32
33 protected: 33 protected:
34 ~IdltestGetArrayBufferFunction() override {} 34 ~IdltestGetArrayBufferFunction() override {}
35 bool RunSync() override; 35 ResponseAction Run() override;
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_ 38 #endif // CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/idltest/idltest_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698