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

Side by Side Diff: remoting/client/plugin/pepper_view.h

Issue 2840036: Moving Encoder and Decoder to remoting/base (Closed)
Patch Set: fix DEPS Created 10 years, 5 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
« no previous file with comments | « remoting/client/mock_objects.h ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This class is an implementation of the ChromotingView using Pepper devices 5 // This class is an implementation of the ChromotingView using Pepper devices
6 // as the backing stores. The public APIs to this class are thread-safe. 6 // as the backing stores. The public APIs to this class are thread-safe.
7 // Calls will dispatch any interaction with the pepper API onto the pepper 7 // Calls will dispatch any interaction with the pepper API onto the pepper
8 // main thread. 8 // main thread.
9 // 9 //
10 // TODO(ajwong): We need to better understand the threading semantics of this 10 // TODO(ajwong): We need to better understand the threading semantics of this
11 // class. Currently, we're just going to always run everything on the pepper 11 // class. Currently, we're just going to always run everything on the pepper
12 // main thread. Is this smart? 12 // main thread. Is this smart?
13 13
14 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 14 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
15 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 15 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
16 16
17 #include "base/scoped_ptr.h" 17 #include "base/scoped_ptr.h"
18 #include "base/task.h" 18 #include "base/task.h"
19 #include "media/base/video_frame.h" 19 #include "media/base/video_frame.h"
20 #include "remoting/base/decoder.h"
20 #include "remoting/client/chromoting_view.h" 21 #include "remoting/client/chromoting_view.h"
21 #include "remoting/client/decoder.h"
22 #include "third_party/ppapi/cpp/device_context_2d.h" 22 #include "third_party/ppapi/cpp/device_context_2d.h"
23 23
24 namespace remoting { 24 namespace remoting {
25 25
26 class ChromotingPlugin; 26 class ChromotingPlugin;
27 class Decoder; 27 class Decoder;
28 28
29 class PepperView : public ChromotingView { 29 class PepperView : public ChromotingView {
30 public: 30 public:
31 // Constructs a PepperView that draws to the |rendering_device|. The 31 // Constructs a PepperView that draws to the |rendering_device|. The
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 scoped_ptr<Decoder> decoder_; 78 scoped_ptr<Decoder> decoder_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(PepperView); 80 DISALLOW_COPY_AND_ASSIGN(PepperView);
81 }; 81 };
82 82
83 } // namespace remoting 83 } // namespace remoting
84 84
85 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperView); 85 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperView);
86 86
87 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 87 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
OLDNEW
« no previous file with comments | « remoting/client/mock_objects.h ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698