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 COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H_ | 5 #ifndef COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H_ |
6 #define COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H_ | 6 #define COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "components/web_resource/resource_request_allowed_notifier.h" | 10 #include "components/web_resource/resource_request_allowed_notifier.h" |
10 | 11 |
11 class PrefService; | 12 class PrefService; |
12 | 13 |
13 namespace web_resource { | 14 namespace web_resource { |
14 | 15 |
15 // A subclass of ResourceRequestAllowedNotifier used to expose some | 16 // A subclass of ResourceRequestAllowedNotifier used to expose some |
16 // functionality for testing. | 17 // functionality for testing. |
17 // | 18 // |
(...skipping 28 matching lines...) Expand all Loading... |
46 scoped_ptr<EulaAcceptedNotifier> test_eula_notifier_; | 47 scoped_ptr<EulaAcceptedNotifier> test_eula_notifier_; |
47 bool override_requests_allowed_; | 48 bool override_requests_allowed_; |
48 bool requests_allowed_; | 49 bool requests_allowed_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(TestRequestAllowedNotifier); | 51 DISALLOW_COPY_AND_ASSIGN(TestRequestAllowedNotifier); |
51 }; | 52 }; |
52 | 53 |
53 } // namespace web_resource | 54 } // namespace web_resource |
54 | 55 |
55 #endif // COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H
_ | 56 #endif // COMPONENTS_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_H
_ |
OLD | NEW |