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

Side by Side Diff: extensions/browser/api/serial/serial_api.h

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_
6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ 6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "device/serial/serial.mojom.h" 10 #include "device/serial/serial.mojom.h"
11 #include "extensions/browser/api/api_resource_manager.h" 11 #include "extensions/browser/api/api_resource_manager.h"
12 #include "extensions/browser/api/async_api_function.h" 12 #include "extensions/browser/api/async_api_function.h"
13 #include "extensions/common/api/serial.h" 13 #include "extensions/common/api/serial.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 class SerialConnection; 17 class SerialConnection;
18 18
19 namespace core_api { 19 namespace api {
20 20
21 class SerialEventDispatcher; 21 class SerialEventDispatcher;
22 22
23 class SerialAsyncApiFunction : public AsyncApiFunction { 23 class SerialAsyncApiFunction : public AsyncApiFunction {
24 public: 24 public:
25 SerialAsyncApiFunction(); 25 SerialAsyncApiFunction();
26 26
27 protected: 27 protected:
28 ~SerialAsyncApiFunction() override; 28 ~SerialAsyncApiFunction() override;
29 29
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 ~SerialClearBreakFunction() override; 264 ~SerialClearBreakFunction() override;
265 265
266 // AsyncApiFunction: 266 // AsyncApiFunction:
267 bool Prepare() override; 267 bool Prepare() override;
268 void Work() override; 268 void Work() override;
269 269
270 private: 270 private:
271 scoped_ptr<serial::ClearBreak::Params> params_; 271 scoped_ptr<serial::ClearBreak::Params> params_;
272 }; 272 };
273 273
274 } // namespace core_api 274 } // namespace api
275 275
276 } // namespace extensions 276 } // namespace extensions
277 277
278 namespace mojo { 278 namespace mojo {
279 279
280 template <> 280 template <>
281 struct TypeConverter<linked_ptr<extensions::core_api::serial::DeviceInfo>, 281 struct TypeConverter<linked_ptr<extensions::api::serial::DeviceInfo>,
282 device::serial::DeviceInfoPtr> { 282 device::serial::DeviceInfoPtr> {
283 static linked_ptr<extensions::core_api::serial::DeviceInfo> Convert( 283 static linked_ptr<extensions::api::serial::DeviceInfo> Convert(
284 const device::serial::DeviceInfoPtr& input); 284 const device::serial::DeviceInfoPtr& input);
285 }; 285 };
286 286
287 } // namespace mojo 287 } // namespace mojo
288 288
289 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ 289 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/runtime/runtime_api_delegate.h ('k') | extensions/browser/api/serial/serial_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698