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/navigation_feature.h" | 5 #include "blimp/client/feature/navigation_feature.h" |
| 6 |
| 7 #include <map> |
| 8 #include <string> |
6 | 9 |
7 #include "blimp/common/create_blimp_message.h" | 10 #include "blimp/common/create_blimp_message.h" |
8 #include "blimp/common/proto/blimp_message.pb.h" | 11 #include "blimp/common/proto/blimp_message.pb.h" |
9 #include "blimp/common/proto/navigation.pb.h" | 12 #include "blimp/common/proto/navigation.pb.h" |
10 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
11 #include "url/gurl.h" | 14 #include "url/gurl.h" |
12 | 15 |
13 namespace blimp { | 16 namespace blimp { |
14 namespace client { | 17 namespace client { |
15 | 18 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 NavigationFeature::NavigationFeatureDelegate* NavigationFeature::FindDelegate( | 123 NavigationFeature::NavigationFeatureDelegate* NavigationFeature::FindDelegate( |
121 const int tab_id) { | 124 const int tab_id) { |
122 DelegateMap::const_iterator it = delegates_.find(tab_id); | 125 DelegateMap::const_iterator it = delegates_.find(tab_id); |
123 if (it != delegates_.end()) | 126 if (it != delegates_.end()) |
124 return it->second; | 127 return it->second; |
125 return nullptr; | 128 return nullptr; |
126 } | 129 } |
127 | 130 |
128 } // namespace client | 131 } // namespace client |
129 } // namespace blimp | 132 } // namespace blimp |
OLD | NEW |