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

Side by Side Diff: chrome/browser/extensions/api/identity/identity_event_router.h

Issue 27283002: Identity API: Add chrome.identity.onSignInChanged routing and IDL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 7 years, 2 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698