OLD | NEW |
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 CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_
H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_
H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_
H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_
H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/extensions/chrome_extension_function.h" | 10 #include "chrome/browser/extensions/chrome_extension_function.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 ScreenlockPrivateEventRouter>* | 66 ScreenlockPrivateEventRouter>* |
67 GetFactoryInstance(); | 67 GetFactoryInstance(); |
68 void Shutdown() override; | 68 void Shutdown() override; |
69 | 69 |
70 // proximity_auth::ScreenlockBridge::Observer | 70 // proximity_auth::ScreenlockBridge::Observer |
71 void OnScreenDidLock(proximity_auth::ScreenlockBridge::LockHandler::ScreenType | 71 void OnScreenDidLock(proximity_auth::ScreenlockBridge::LockHandler::ScreenType |
72 screen_type) override; | 72 screen_type) override; |
73 void OnScreenDidUnlock( | 73 void OnScreenDidUnlock( |
74 proximity_auth::ScreenlockBridge::LockHandler::ScreenType screen_type) | 74 proximity_auth::ScreenlockBridge::LockHandler::ScreenType screen_type) |
75 override; | 75 override; |
76 void OnFocusedUserChanged(const std::string& user_id) override; | 76 void OnFocusedUserChanged(const user_manager::UserID& user_id) override; |
77 | 77 |
78 private: | 78 private: |
79 friend class extensions::BrowserContextKeyedAPIFactory< | 79 friend class extensions::BrowserContextKeyedAPIFactory< |
80 ScreenlockPrivateEventRouter>; | 80 ScreenlockPrivateEventRouter>; |
81 | 81 |
82 // BrowserContextKeyedAPI | 82 // BrowserContextKeyedAPI |
83 static const char* service_name() { | 83 static const char* service_name() { |
84 return "ScreenlockPrivateEventRouter"; | 84 return "ScreenlockPrivateEventRouter"; |
85 } | 85 } |
86 static const bool kServiceIsNULLWhileTesting = true; | 86 static const bool kServiceIsNULLWhileTesting = true; |
87 static const bool kServiceRedirectedInIncognito = true; | 87 static const bool kServiceRedirectedInIncognito = true; |
88 | 88 |
89 void DispatchEvent(const std::string& event_name, base::Value* arg); | 89 void DispatchEvent(const std::string& event_name, base::Value* arg); |
90 | 90 |
91 content::BrowserContext* browser_context_; | 91 content::BrowserContext* browser_context_; |
92 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter); | 92 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace extensions | 95 } // namespace extensions |
96 | 96 |
97 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A
PI_H_ | 97 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A
PI_H_ |
OLD | NEW |