| 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 <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "chrome/browser/extensions/chrome_extension_function.h" | 12 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 12 #include "components/proximity_auth/screenlock_bridge.h" | 13 #include "components/proximity_auth/screenlock_bridge.h" |
| 13 #include "extensions/browser/browser_context_keyed_api_factory.h" | 14 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 14 #include "extensions/browser/extension_event_histogram_value.h" | 15 #include "extensions/browser/extension_event_histogram_value.h" |
| 15 | 16 |
| 16 namespace extensions { | 17 namespace extensions { |
| 17 | 18 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 82 |
| 82 // BrowserContextKeyedAPI | 83 // BrowserContextKeyedAPI |
| 83 static const char* service_name() { | 84 static const char* service_name() { |
| 84 return "ScreenlockPrivateEventRouter"; | 85 return "ScreenlockPrivateEventRouter"; |
| 85 } | 86 } |
| 86 static const bool kServiceIsNULLWhileTesting = true; | 87 static const bool kServiceIsNULLWhileTesting = true; |
| 87 static const bool kServiceRedirectedInIncognito = true; | 88 static const bool kServiceRedirectedInIncognito = true; |
| 88 | 89 |
| 89 void DispatchEvent(events::HistogramValue histogram_value, | 90 void DispatchEvent(events::HistogramValue histogram_value, |
| 90 const std::string& event_name, | 91 const std::string& event_name, |
| 91 base::Value* arg); | 92 std::unique_ptr<base::Value> arg); |
| 92 | 93 |
| 93 content::BrowserContext* browser_context_; | 94 content::BrowserContext* browser_context_; |
| 94 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter); | 95 DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace extensions | 98 } // namespace extensions |
| 98 | 99 |
| 99 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A
PI_H_ | 100 #endif // CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_A
PI_H_ |
| OLD | NEW |