| OLD | NEW |
| 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 #include "mojo/common/binding_set.h" | 5 #include "mojo/common/binding_set.h" |
| 6 #include "mojo/public/c/system/main.h" | 6 #include "mojo/public/c/system/main.h" |
| 7 #include "mojo/public/cpp/application/application_connection.h" | 7 #include "mojo/public/cpp/application/application_connection.h" |
| 8 #include "mojo/public/cpp/application/application_delegate.h" | 8 #include "mojo/public/cpp/application/application_delegate.h" |
| 9 #include "mojo/public/cpp/application/application_runner.h" | 9 #include "mojo/public/cpp/application/application_runner.h" |
| 10 #include "mojo/public/cpp/application/interface_factory.h" | 10 #include "mojo/public/cpp/application/interface_factory.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const SelectAccountCallback& callback) override { | 42 const SelectAccountCallback& callback) override { |
| 43 callback.Run(nullptr, "Not implemented"); | 43 callback.Run(nullptr, "Not implemented"); |
| 44 } | 44 } |
| 45 void GetOAuth2Token(const mojo::String& username, | 45 void GetOAuth2Token(const mojo::String& username, |
| 46 mojo::Array<mojo::String> scopes, | 46 mojo::Array<mojo::String> scopes, |
| 47 const GetOAuth2TokenCallback& callback) override { | 47 const GetOAuth2TokenCallback& callback) override { |
| 48 callback.Run(nullptr, "Not implemented"); | 48 callback.Run(nullptr, "Not implemented"); |
| 49 } | 49 } |
| 50 void ClearOAuth2Token(const mojo::String& token) override {} | 50 void ClearOAuth2Token(const mojo::String& token) override {} |
| 51 | 51 |
| 52 void GetOAuth2DeviceCode(mojo::Array<mojo::String> scopes, |
| 53 const GetOAuth2TokenCallback& callback) override { |
| 54 callback.Run(nullptr, "Not implemented"); |
| 55 } |
| 56 |
| 57 void AddAccount(const mojo::String& device_code) override {} |
| 58 |
| 52 mojo::BindingSet<AuthenticationService> bindings_; | 59 mojo::BindingSet<AuthenticationService> bindings_; |
| 53 }; | 60 }; |
| 54 | 61 |
| 55 } // namespace | 62 } // namespace |
| 56 } // namespace authentication | 63 } // namespace authentication |
| 57 | 64 |
| 58 MojoResult MojoMain(MojoHandle application_request) { | 65 MojoResult MojoMain(MojoHandle application_request) { |
| 59 mojo::ApplicationRunner runner( | 66 mojo::ApplicationRunner runner( |
| 60 new authentication::DummyAuthenticationApplication); | 67 new authentication::DummyAuthenticationApplication); |
| 61 return runner.Run(application_request); | 68 return runner.Run(application_request); |
| 62 } | 69 } |
| OLD | NEW |