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/session/navigation_feature.h" |
6 | 6 |
7 #include "blimp/common/create_blimp_message.h" | 7 #include "blimp/common/create_blimp_message.h" |
8 #include "blimp/common/proto/blimp_message.pb.h" | 8 #include "blimp/common/proto/blimp_message.pb.h" |
9 #include "blimp/common/proto/navigation.pb.h" | 9 #include "blimp/common/proto/navigation.pb.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 namespace blimp { | 13 namespace blimp { |
| 14 namespace client { |
14 | 15 |
15 NavigationFeature::NavigationFeature() {} | 16 NavigationFeature::NavigationFeature() {} |
16 | 17 |
17 NavigationFeature::~NavigationFeature() {} | 18 NavigationFeature::~NavigationFeature() {} |
18 | 19 |
19 void NavigationFeature::set_outgoing_message_processor( | 20 void NavigationFeature::set_outgoing_message_processor( |
20 scoped_ptr<BlimpMessageProcessor> processor) { | 21 scoped_ptr<BlimpMessageProcessor> processor) { |
21 outgoing_message_processor_ = std::move(processor); | 22 outgoing_message_processor_ = std::move(processor); |
22 } | 23 } |
23 | 24 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 124 } |
124 | 125 |
125 NavigationFeature::NavigationFeatureDelegate* NavigationFeature::FindDelegate( | 126 NavigationFeature::NavigationFeatureDelegate* NavigationFeature::FindDelegate( |
126 const int tab_id) { | 127 const int tab_id) { |
127 DelegateMap::const_iterator it = delegates_.find(tab_id); | 128 DelegateMap::const_iterator it = delegates_.find(tab_id); |
128 if (it != delegates_.end()) | 129 if (it != delegates_.end()) |
129 return it->second; | 130 return it->second; |
130 return nullptr; | 131 return nullptr; |
131 } | 132 } |
132 | 133 |
| 134 } // namespace client |
133 } // namespace blimp | 135 } // namespace blimp |
OLD | NEW |