OLD | NEW |
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 #include "remoting/client/plugin/pepper_view.h" | 5 #include "remoting/client/plugin/pepper_view.h" |
6 | 6 |
7 #include <functional> | 7 #include <functional> |
8 | 8 |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 case protocol::PEER_IS_OFFLINE: | 44 case protocol::PEER_IS_OFFLINE: |
45 return ChromotingInstance::ERROR_HOST_IS_OFFLINE; | 45 return ChromotingInstance::ERROR_HOST_IS_OFFLINE; |
46 | 46 |
47 case protocol::SESSION_REJECTED: | 47 case protocol::SESSION_REJECTED: |
48 case protocol::AUTHENTICATION_FAILED: | 48 case protocol::AUTHENTICATION_FAILED: |
49 return ChromotingInstance::ERROR_SESSION_REJECTED; | 49 return ChromotingInstance::ERROR_SESSION_REJECTED; |
50 | 50 |
51 case protocol::INCOMPATIBLE_PROTOCOL: | 51 case protocol::INCOMPATIBLE_PROTOCOL: |
52 return ChromotingInstance::ERROR_INCOMPATIBLE_PROTOCOL; | 52 return ChromotingInstance::ERROR_INCOMPATIBLE_PROTOCOL; |
53 | 53 |
| 54 case protocol::HOST_IS_DISABLED: |
| 55 return ChromotingInstance::ERROR_HOST_IS_DISABLED; |
| 56 |
54 case protocol::CHANNEL_CONNECTION_ERROR: | 57 case protocol::CHANNEL_CONNECTION_ERROR: |
55 case protocol::SIGNALING_ERROR: | 58 case protocol::SIGNALING_ERROR: |
56 case protocol::SIGNALING_TIMEOUT: | 59 case protocol::SIGNALING_TIMEOUT: |
57 case protocol::UNKNOWN_ERROR: | 60 case protocol::UNKNOWN_ERROR: |
58 return ChromotingInstance::ERROR_NETWORK_FAILURE; | 61 return ChromotingInstance::ERROR_NETWORK_FAILURE; |
59 } | 62 } |
60 DLOG(FATAL) << "Unknown error code" << error; | 63 DLOG(FATAL) << "Unknown error code" << error; |
61 return ChromotingInstance::ERROR_NONE; | 64 return ChromotingInstance::ERROR_NONE; |
62 } | 65 } |
63 | 66 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 // Resume painting for the buffer that was previoulsy postponed because of | 364 // Resume painting for the buffer that was previoulsy postponed because of |
362 // pending flush. | 365 // pending flush. |
363 if (merge_buffer_ != NULL) { | 366 if (merge_buffer_ != NULL) { |
364 buffer = merge_buffer_; | 367 buffer = merge_buffer_; |
365 merge_buffer_ = NULL; | 368 merge_buffer_ = NULL; |
366 FlushBuffer(merge_clip_area_, buffer, merge_region_); | 369 FlushBuffer(merge_clip_area_, buffer, merge_region_); |
367 } | 370 } |
368 } | 371 } |
369 | 372 |
370 } // namespace remoting | 373 } // namespace remoting |
OLD | NEW |