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

Side by Side Diff: chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698