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" |
11 #include "chrome/browser/signin/screenlock_bridge.h" | 11 #include "components/signin/content/screenlock_bridge.h" |
12 #include "extensions/browser/browser_context_keyed_api_factory.h" | 12 #include "extensions/browser/browser_context_keyed_api_factory.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 class ScreenlockPrivateGetLockedFunction : public ChromeAsyncExtensionFunction { | 16 class ScreenlockPrivateGetLockedFunction : public ChromeAsyncExtensionFunction { |
17 public: | 17 public: |
18 DECLARE_EXTENSION_FUNCTION("screenlockPrivate.getLocked", | 18 DECLARE_EXTENSION_FUNCTION("screenlockPrivate.getLocked", |
19 SCREENLOCKPRIVATE_GETLOCKED) | 19 SCREENLOCKPRIVATE_GETLOCKED) |
20 ScreenlockPrivateGetLockedFunction(); | 20 ScreenlockPrivateGetLockedFunction(); |
21 bool RunAsync() override; | 21 bool RunAsync() override; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 void DispatchEvent(const std::string& event_name, base::Value* arg); | 86 void DispatchEvent(const std::string& event_name, base::Value* arg); |
87 | 87 |
88 content::BrowserContext* browser_context_; | 88 content::BrowserContext* browser_context_; |
89 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter); | 89 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace extensions | 92 } // namespace extensions |
93 | 93 |
94 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A
PI_H_ | 94 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A
PI_H_ |
OLD | NEW |