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

Side by Side Diff: blimp/client/session/render_widget_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/render_widget_feature.h" 5 #include "blimp/client/session/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
16 namespace blimp { 16 namespace blimp {
17 namespace client {
17 18
18 RenderWidgetFeature::RenderWidgetFeature() {} 19 RenderWidgetFeature::RenderWidgetFeature() {}
19 20
20 RenderWidgetFeature::~RenderWidgetFeature() {} 21 RenderWidgetFeature::~RenderWidgetFeature() {}
21 22
22 void RenderWidgetFeature::set_outgoing_input_message_processor( 23 void RenderWidgetFeature::set_outgoing_input_message_processor(
23 scoped_ptr<BlimpMessageProcessor> processor) { 24 scoped_ptr<BlimpMessageProcessor> processor) {
24 outgoing_input_message_processor_ = std::move(processor); 25 outgoing_input_message_processor_ = std::move(processor);
25 } 26 }
26 27
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return nullptr; 125 return nullptr;
125 } 126 }
126 127
127 uint32_t RenderWidgetFeature::GetRenderWidgetId(const int tab_id) { 128 uint32_t RenderWidgetFeature::GetRenderWidgetId(const int tab_id) {
128 RenderWidgetIdMap::const_iterator it = render_widget_ids_.find(tab_id); 129 RenderWidgetIdMap::const_iterator it = render_widget_ids_.find(tab_id);
129 if (it != render_widget_ids_.end()) 130 if (it != render_widget_ids_.end())
130 return it->second; 131 return it->second;
131 return 0U; 132 return 0U;
132 } 133 }
133 134
135 } // namespace client
134 } // namespace blimp 136 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/session/render_widget_feature.h ('k') | blimp/client/session/render_widget_feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698