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

Side by Side Diff: remoting/client/jni/chromoting_jni_runtime.h

Issue 319273003: Third Party Authentication for Android Part II - Java Native Interface plumbing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Feedbacks Created 6 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ 5 #ifndef REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_
6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ 6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 protocol::ErrorCode error); 75 protocol::ErrorCode error);
76 76
77 // Pops up a dialog box asking the user to enter a PIN. Call on UI thread. 77 // Pops up a dialog box asking the user to enter a PIN. Call on UI thread.
78 void DisplayAuthenticationPrompt(bool pairing_supported); 78 void DisplayAuthenticationPrompt(bool pairing_supported);
79 79
80 // Saves new pairing credentials to permanent storage. Call on UI thread. 80 // Saves new pairing credentials to permanent storage. Call on UI thread.
81 void CommitPairingCredentials(const std::string& host, 81 void CommitPairingCredentials(const std::string& host,
82 const std::string& id, 82 const std::string& id,
83 const std::string& secret); 83 const std::string& secret);
84 84
85 // Pops up a third party login page to fetch token required for
86 // authentication. Call on UI thread.
87 void FetchThirdPartyToken(const GURL& token_url,
88 const std::string& client_id,
89 const std::string& scope);
90
85 // Creates a new Bitmap object to store a video frame. 91 // Creates a new Bitmap object to store a video frame.
86 base::android::ScopedJavaLocalRef<jobject> NewBitmap( 92 base::android::ScopedJavaLocalRef<jobject> NewBitmap(
87 webrtc::DesktopSize size); 93 webrtc::DesktopSize size);
88 94
89 // Updates video frame bitmap. |bitmap| must be an instance of 95 // Updates video frame bitmap. |bitmap| must be an instance of
90 // android.graphics.Bitmap. Call on the display thread. 96 // android.graphics.Bitmap. Call on the display thread.
91 void UpdateFrameBitmap(jobject bitmap); 97 void UpdateFrameBitmap(jobject bitmap);
92 98
93 // Updates cursor shape. Call on display thread. 99 // Updates cursor shape. Call on display thread.
94 void UpdateCursorShape(const protocol::CursorShapeInfo& cursor_shape); 100 void UpdateCursorShape(const protocol::CursorShapeInfo& cursor_shape);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 scoped_refptr<ChromotingJniInstance> session_; 133 scoped_refptr<ChromotingJniInstance> session_;
128 134
129 friend struct DefaultSingletonTraits<ChromotingJniRuntime>; 135 friend struct DefaultSingletonTraits<ChromotingJniRuntime>;
130 136
131 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime); 137 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime);
132 }; 138 };
133 139
134 } // namespace remoting 140 } // namespace remoting
135 141
136 #endif 142 #endif
OLDNEW
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.cc ('k') | remoting/client/jni/chromoting_jni_runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698