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

Side by Side Diff: remoting/client/plugin/pepper_view_proxy.cc

Issue 8351084: Remove old Authentication code that we don't use or need. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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/plugin/pepper_view_proxy.h ('k') | remoting/host/chromoting_host.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "remoting/client/plugin/pepper_view_proxy.h" 5 #include "remoting/client/plugin/pepper_view_proxy.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "remoting/client/client_context.h" 8 #include "remoting/client/client_context.h"
9 #include "remoting/client/plugin/chromoting_instance.h" 9 #include "remoting/client/plugin/chromoting_instance.h"
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 if (instance_ && !plugin_message_loop_->BelongsToCurrentThread()) { 77 if (instance_ && !plugin_message_loop_->BelongsToCurrentThread()) {
78 plugin_message_loop_->PostTask(FROM_HERE, NewRunnableMethod( 78 plugin_message_loop_->PostTask(FROM_HERE, NewRunnableMethod(
79 this, &PepperViewProxy::SetConnectionState, state, error)); 79 this, &PepperViewProxy::SetConnectionState, state, error));
80 return; 80 return;
81 } 81 }
82 82
83 if (view_) 83 if (view_)
84 view_->SetConnectionState(state, error); 84 view_->SetConnectionState(state, error);
85 } 85 }
86 86
87 void PepperViewProxy::UpdateLoginStatus(bool success, const std::string& info) {
88 if (instance_ && !plugin_message_loop_->BelongsToCurrentThread()) {
89 plugin_message_loop_->PostTask(FROM_HERE, NewRunnableMethod(
90 this, &PepperViewProxy::UpdateLoginStatus, success, info));
91 return;
92 }
93
94 if (view_)
95 view_->UpdateLoginStatus(success, info);
96 }
97
98 double PepperViewProxy::GetHorizontalScaleRatio() const { 87 double PepperViewProxy::GetHorizontalScaleRatio() const {
99 // This method returns a value, so must run synchronously, so must be 88 // This method returns a value, so must run synchronously, so must be
100 // called only on the pepper thread. 89 // called only on the pepper thread.
101 DCHECK(plugin_message_loop_->BelongsToCurrentThread()); 90 DCHECK(plugin_message_loop_->BelongsToCurrentThread());
102 91
103 if (view_) 92 if (view_)
104 return view_->GetHorizontalScaleRatio(); 93 return view_->GetHorizontalScaleRatio();
105 return 1.0; 94 return 1.0;
106 } 95 }
107 96
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 view_->OnPartialFrameOutput(frame, rects, done); 150 view_->OnPartialFrameOutput(frame, rects, done);
162 } 151 }
163 152
164 void PepperViewProxy::Detach() { 153 void PepperViewProxy::Detach() {
165 DCHECK(plugin_message_loop_->BelongsToCurrentThread()); 154 DCHECK(plugin_message_loop_->BelongsToCurrentThread());
166 instance_ = NULL; 155 instance_ = NULL;
167 view_ = NULL; 156 view_ = NULL;
168 } 157 }
169 158
170 } // namespace remoting 159 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_view_proxy.h ('k') | remoting/host/chromoting_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698