OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_WEB_RESTRICTIONS_BROWSER_MOCK_WEB_RESTRICTIONS_CLIENT_H_ | 5 #ifndef COMPONENTS_WEB_RESTRICTIONS_BROWSER_MOCK_WEB_RESTRICTIONS_CLIENT_H_ |
6 #define COMPONENTS_WEB_RESTRICTIONS_BROWSER_MOCK_WEB_RESTRICTIONS_CLIENT_H_ | 6 #define COMPONENTS_WEB_RESTRICTIONS_BROWSER_MOCK_WEB_RESTRICTIONS_CLIENT_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace web_restrictions { | 12 namespace web_restrictions { |
13 | 13 |
14 // This is a wrapper for the Java MockWebRestrictionsClient. | 14 // This is a wrapper for the Java MockWebRestrictionsClient. |
15 class MockWebRestrictionsClient { | 15 class MockWebRestrictionsClient { |
16 public: | 16 public: |
17 MockWebRestrictionsClient(); | 17 MockWebRestrictionsClient(); |
18 | 18 |
19 ~MockWebRestrictionsClient(); | 19 ~MockWebRestrictionsClient(); |
20 | |
21 static bool Register(JNIEnv* env); | |
22 }; | 20 }; |
23 | 21 |
24 } // namespace web_restrictions | 22 } // namespace web_restrictions |
25 #endif // COMPONENTS_WEB_RESTRICTIONS_BROWSER_MOCK_WEB_RESTRICTIONS_CLIENT_H_ | 23 #endif // COMPONENTS_WEB_RESTRICTIONS_BROWSER_MOCK_WEB_RESTRICTIONS_CLIENT_H_ |
OLD | NEW |