OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
qsr
2016/01/13 12:01:00
I think this file is not used anymore.
ukode
2016/02/09 00:20:18
Acknowledged. Removed it.
| |
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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "mojo/common/binding_set.h" | 7 #include "mojo/common/binding_set.h" |
8 #include "mojo/public/c/system/main.h" | 8 #include "mojo/public/c/system/main.h" |
9 #include "mojo/public/cpp/application/application_connection.h" | 9 #include "mojo/public/cpp/application/application_connection.h" |
10 #include "mojo/public/cpp/application/application_delegate.h" | 10 #include "mojo/public/cpp/application/application_delegate.h" |
11 #include "mojo/public/cpp/application/application_runner.h" | 11 #include "mojo/public/cpp/application/application_runner.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 const SelectAccountCallback& callback) override { | 44 const SelectAccountCallback& callback) override { |
45 callback.Run(nullptr, "Not implemented"); | 45 callback.Run(nullptr, "Not implemented"); |
46 } | 46 } |
47 void GetOAuth2Token(const mojo::String& username, | 47 void GetOAuth2Token(const mojo::String& username, |
48 mojo::Array<mojo::String> scopes, | 48 mojo::Array<mojo::String> scopes, |
49 const GetOAuth2TokenCallback& callback) override { | 49 const GetOAuth2TokenCallback& callback) override { |
50 callback.Run(nullptr, "Not implemented"); | 50 callback.Run(nullptr, "Not implemented"); |
51 } | 51 } |
52 void ClearOAuth2Token(const mojo::String& token) override {} | 52 void ClearOAuth2Token(const mojo::String& token) override {} |
53 | 53 |
54 void GetOAuth2DeviceCode(mojo::Array<mojo::String> scopes, | |
55 const GetOAuth2TokenCallback& callback) override { | |
56 callback.Run(nullptr, "Not implemented"); | |
57 } | |
58 | |
59 void AddAccount(const mojo::String& device_code) override {} | |
60 | |
54 mojo::BindingSet<AuthenticationService> bindings_; | 61 mojo::BindingSet<AuthenticationService> bindings_; |
55 }; | 62 }; |
56 | 63 |
57 } // namespace | 64 } // namespace |
58 } // namespace authentication | 65 } // namespace authentication |
59 | 66 |
60 MojoResult MojoMain(MojoHandle application_request) { | 67 MojoResult MojoMain(MojoHandle application_request) { |
61 mojo::ApplicationRunner runner( | 68 mojo::ApplicationRunner runner( |
62 std::unique_ptr<authentication::DummyAuthenticationApplication>( | 69 std::unique_ptr<authentication::DummyAuthenticationApplication>( |
63 new authentication::DummyAuthenticationApplication())); | 70 new authentication::DummyAuthenticationApplication())); |
64 return runner.Run(application_request); | 71 return runner.Run(application_request); |
65 } | 72 } |
OLD | NEW |