Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: blimp/client/session/navigation_feature.cc

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « blimp/client/session/navigation_feature.h ('k') | blimp/client/session/navigation_feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698