OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_EVENT_ROUTER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 |
| 12 class Profile; |
| 13 |
| 14 namespace extensions { |
| 15 |
| 16 class IdentityEventRouter { |
| 17 public: |
| 18 explicit IdentityEventRouter(Profile* profile); |
| 19 ~IdentityEventRouter(); |
| 20 |
| 21 // Dispatch identity.onSignInChanged event, including email address |
| 22 // for extensions with the identity.email permission. |
| 23 void DispatchSignInEvent(const std::string& id, |
| 24 const std::string& email, |
| 25 bool is_signed_in); |
| 26 |
| 27 private: |
| 28 Profile* profile_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(IdentityEventRouter); |
| 31 }; |
| 32 |
| 33 } // namespace extensions |
| 34 |
| 35 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_EVENT_ROUTER_H_ |
OLD | NEW |