OLD | NEW |
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 #include "extensions/browser/api/cast_channel/logger.h" | 5 #include "extensions/browser/api/cast_channel/logger.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/time/tick_clock.h" | 10 #include "base/time/tick_clock.h" |
11 #include "extensions/browser/api/cast_channel/cast_auth_util.h" | 11 #include "extensions/browser/api/cast_channel/cast_auth_util.h" |
12 #include "extensions/browser/api/cast_channel/cast_socket.h" | 12 #include "extensions/browser/api/cast_channel/cast_socket.h" |
13 #include "extensions/browser/api/cast_channel/logger_util.h" | 13 #include "extensions/browser/api/cast_channel/logger_util.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "third_party/zlib/zlib.h" | 15 #include "third_party/zlib/zlib.h" |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 namespace core_api { | 18 namespace api { |
19 namespace cast_channel { | 19 namespace cast_channel { |
20 | 20 |
21 using net::IPEndPoint; | 21 using net::IPEndPoint; |
22 using proto::AggregatedSocketEvent; | 22 using proto::AggregatedSocketEvent; |
23 using proto::EventType; | 23 using proto::EventType; |
24 using proto::Log; | 24 using proto::Log; |
25 using proto::SocketEvent; | 25 using proto::SocketEvent; |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 AggregatedSocketEventLogMap::const_iterator it = | 362 AggregatedSocketEventLogMap::const_iterator it = |
363 aggregated_socket_events_.find(channel_id); | 363 aggregated_socket_events_.find(channel_id); |
364 if (it != aggregated_socket_events_.end()) { | 364 if (it != aggregated_socket_events_.end()) { |
365 return it->second->last_errors; | 365 return it->second->last_errors; |
366 } else { | 366 } else { |
367 return LastErrors(); | 367 return LastErrors(); |
368 } | 368 } |
369 } | 369 } |
370 | 370 |
371 } // namespace cast_channel | 371 } // namespace cast_channel |
372 } // namespace core_api | 372 } // namespace api |
373 } // namespace extensions | 373 } // namespace extensions |
OLD | NEW |