| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "blimp/client/session/render_widget_feature.h" | 5 #include "blimp/client/feature/render_widget_feature.h" |
| 6 | 6 |
| 7 #include "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
| 8 #include "blimp/common/create_blimp_message.h" | 8 #include "blimp/common/create_blimp_message.h" |
| 9 #include "blimp/common/proto/blimp_message.pb.h" | 9 #include "blimp/common/proto/blimp_message.pb.h" |
| 10 #include "blimp/common/proto/compositor.pb.h" | 10 #include "blimp/common/proto/compositor.pb.h" |
| 11 #include "blimp/common/proto/input.pb.h" | 11 #include "blimp/common/proto/input.pb.h" |
| 12 #include "blimp/common/proto/render_widget.pb.h" | 12 #include "blimp/common/proto/render_widget.pb.h" |
| 13 #include "cc/proto/compositor_message.pb.h" | 13 #include "cc/proto/compositor_message.pb.h" |
| 14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 | 15 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 uint32_t RenderWidgetFeature::GetRenderWidgetId(const int tab_id) { | 126 uint32_t RenderWidgetFeature::GetRenderWidgetId(const int tab_id) { |
| 127 RenderWidgetIdMap::const_iterator it = render_widget_ids_.find(tab_id); | 127 RenderWidgetIdMap::const_iterator it = render_widget_ids_.find(tab_id); |
| 128 if (it != render_widget_ids_.end()) | 128 if (it != render_widget_ids_.end()) |
| 129 return it->second; | 129 return it->second; |
| 130 return 0U; | 130 return 0U; |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace client | 133 } // namespace client |
| 134 } // namespace blimp | 134 } // namespace blimp |
| OLD | NEW |