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

Side by Side Diff: blimp/client/session/render_widget_feature.h

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 #ifndef BLIMP_CLIENT_SESSION_RENDER_WIDGET_FEATURE_H_ 5 #ifndef BLIMP_CLIENT_SESSION_RENDER_WIDGET_FEATURE_H_
6 #define BLIMP_CLIENT_SESSION_RENDER_WIDGET_FEATURE_H_ 6 #define BLIMP_CLIENT_SESSION_RENDER_WIDGET_FEATURE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/containers/small_map.h" 10 #include "base/containers/small_map.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "blimp/client/blimp_client_export.h" 13 #include "blimp/client/blimp_client_export.h"
14 #include "blimp/net/blimp_message_processor.h" 14 #include "blimp/net/blimp_message_processor.h"
15 #include "blimp/net/input_message_generator.h" 15 #include "blimp/net/input_message_generator.h"
16 16
17 namespace blink { 17 namespace blink {
18 class WebInputEvent; 18 class WebInputEvent;
19 } 19 }
20 20
21 namespace cc { 21 namespace cc {
22 namespace proto { 22 namespace proto {
23 class CompositorMessage; 23 class CompositorMessage;
24 } 24 }
25 } 25 }
26 26
27 namespace blimp { 27 namespace blimp {
28 namespace client {
28 29
29 // Handles all incoming and outgoing protobuf message types tied to a specific 30 // Handles all incoming and outgoing protobuf message types tied to a specific
30 // RenderWidget. This includes BlimpMessage::INPUT, BlimpMessage::COMPOSITOR, 31 // RenderWidget. This includes BlimpMessage::INPUT, BlimpMessage::COMPOSITOR,
31 // and BlimpMessage::RENDER_WIDGET messages. Delegates can be added to be 32 // and BlimpMessage::RENDER_WIDGET messages. Delegates can be added to be
32 // notified of incoming messages. This class automatically attaches a specific 33 // notified of incoming messages. This class automatically attaches a specific
33 // id so that the engine can drop stale RenderWidget related messages after it 34 // id so that the engine can drop stale RenderWidget related messages after it
34 // sends a RenderWidgetMessage::INITIALIZE message. 35 // sends a RenderWidgetMessage::INITIALIZE message.
35 class BLIMP_CLIENT_EXPORT RenderWidgetFeature : public BlimpMessageProcessor { 36 class BLIMP_CLIENT_EXPORT RenderWidgetFeature : public BlimpMessageProcessor {
36 public: 37 public:
37 // A delegate to be notified of specific RenderWidget related incoming events. 38 // A delegate to be notified of specific RenderWidget related incoming events.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 97
97 // Used to send BlimpMessage::INPUT type messages to the engine. 98 // Used to send BlimpMessage::INPUT type messages to the engine.
98 scoped_ptr<BlimpMessageProcessor> outgoing_input_message_processor_; 99 scoped_ptr<BlimpMessageProcessor> outgoing_input_message_processor_;
99 100
100 // Used to send BlimpMessage::COMPOSITOR messages to the engine. 101 // Used to send BlimpMessage::COMPOSITOR messages to the engine.
101 scoped_ptr<BlimpMessageProcessor> outgoing_compositor_message_processor_; 102 scoped_ptr<BlimpMessageProcessor> outgoing_compositor_message_processor_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFeature); 104 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFeature);
104 }; 105 };
105 106
107 } // namespace client
106 } // namespace blimp 108 } // namespace blimp
107 109
108 #endif // BLIMP_CLIENT_SESSION_RENDER_WIDGET_FEATURE_H_ 110 #endif // BLIMP_CLIENT_SESSION_RENDER_WIDGET_FEATURE_H_
OLDNEW
« no previous file with comments | « blimp/client/session/navigation_feature_unittest.cc ('k') | blimp/client/session/render_widget_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698