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

Side by Side Diff: extensions/browser/api/cast_channel/logger_util.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_CAST_CHANNEL_LOGGER_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_LOGGER_UTIL_H_
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_LOGGER_UTIL_H_ 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_LOGGER_UTIL_H_
7 7
8 #include "extensions/common/api/cast_channel.h" 8 #include "extensions/common/api/cast_channel.h"
9 #include "extensions/common/api/cast_channel/logging.pb.h" 9 #include "extensions/common/api/cast_channel/logging.pb.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 namespace core_api { 12 namespace api {
13 namespace cast_channel { 13 namespace cast_channel {
14 // Converts an IDL "ChannelError" to a proto enum "ErrorState". 14 // Converts an IDL "ChannelError" to a proto enum "ErrorState".
15 proto::ErrorState ErrorStateToProto(ChannelError state); 15 proto::ErrorState ErrorStateToProto(ChannelError state);
16 16
17 // Converts an IDL "ReadyState" to a proto enum "ReadyState". 17 // Converts an IDL "ReadyState" to a proto enum "ReadyState".
18 proto::ReadyState ReadyStateToProto(ReadyState state); 18 proto::ReadyState ReadyStateToProto(ReadyState state);
19 19
20 // Holds the most recent errors encountered by a CastSocket. 20 // Holds the most recent errors encountered by a CastSocket.
21 struct LastErrors { 21 struct LastErrors {
22 public: 22 public:
(...skipping 11 matching lines...) Expand all
34 34
35 // The most recent NSS error logged for the socket. 35 // The most recent NSS error logged for the socket.
36 int nss_error_code; 36 int nss_error_code;
37 }; 37 };
38 38
39 } // namespace cast_channel 39 } // namespace cast_channel
40 } // namespace api 40 } // namespace api
41 } // namespace extensions 41 } // namespace extensions
42 42
43 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_LOGGER_UTIL_H_ 43 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_LOGGER_UTIL_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/logger_unittest.cc ('k') | extensions/browser/api/cast_channel/logger_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698