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

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

Issue 9567033: Cleanup error handling in the client plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/client/chromoting_view.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 for Pepper. It is 5 // This class is an implementation of the ChromotingView for Pepper. It is
6 // callable only on the Pepper thread. 6 // callable only on the Pepper thread.
7 7
8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
10 10
(...skipping 20 matching lines...) Expand all
31 PepperView(ChromotingInstance* instance, 31 PepperView(ChromotingInstance* instance,
32 ClientContext* context, 32 ClientContext* context,
33 FrameProducer* producer); 33 FrameProducer* producer);
34 virtual ~PepperView(); 34 virtual ~PepperView();
35 35
36 // ChromotingView implementation. 36 // ChromotingView implementation.
37 virtual bool Initialize() OVERRIDE; 37 virtual bool Initialize() OVERRIDE;
38 virtual void TearDown() OVERRIDE; 38 virtual void TearDown() OVERRIDE;
39 virtual void SetConnectionState( 39 virtual void SetConnectionState(
40 protocol::ConnectionToHost::State state, 40 protocol::ConnectionToHost::State state,
41 protocol::ConnectionToHost::Error error) OVERRIDE; 41 protocol::ErrorCode error) OVERRIDE;
42 42
43 // FrameConsumer implementation. 43 // FrameConsumer implementation.
44 virtual void ApplyBuffer(const SkISize& view_size, 44 virtual void ApplyBuffer(const SkISize& view_size,
45 const SkIRect& clip_area, 45 const SkIRect& clip_area,
46 pp::ImageData* buffer, 46 pp::ImageData* buffer,
47 const SkRegion& region) OVERRIDE; 47 const SkRegion& region) OVERRIDE;
48 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE; 48 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE;
49 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE; 49 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE;
50 50
51 // Sets the display size and clipping area of this view. 51 // Sets the display size and clipping area of this view.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool in_teardown_; 114 bool in_teardown_;
115 115
116 base::WeakPtrFactory<PepperView> weak_factory_; 116 base::WeakPtrFactory<PepperView> weak_factory_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(PepperView); 118 DISALLOW_COPY_AND_ASSIGN(PepperView);
119 }; 119 };
120 120
121 } // namespace remoting 121 } // namespace remoting
122 122
123 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 123 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_view.h ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698