OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_MANAGED_MODE_MANAGED_USER_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ |
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ | 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/gtest_prod_util.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/prefs/pref_change_registrar.h" | 14 #include "base/prefs/pref_change_registrar.h" |
14 #include "base/scoped_observer.h" | 15 #include "base/scoped_observer.h" |
15 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
16 #include "chrome/browser/managed_mode/managed_mode_url_filter.h" | 17 #include "chrome/browser/managed_mode/managed_mode_url_filter.h" |
17 #include "chrome/browser/managed_mode/managed_users.h" | 18 #include "chrome/browser/managed_mode/managed_users.h" |
18 #include "chrome/browser/sync/profile_sync_service_observer.h" | 19 #include "chrome/browser/sync/profile_sync_service_observer.h" |
19 #include "chrome/browser/ui/browser_list_observer.h" | 20 #include "chrome/browser/ui/browser_list_observer.h" |
20 #include "components/keyed_service/core/keyed_service.h" | 21 #include "components/keyed_service/core/keyed_service.h" |
21 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // Used to create permission requests. | 262 // Used to create permission requests. |
262 scoped_ptr<PermissionRequestCreator> permissions_creator_; | 263 scoped_ptr<PermissionRequestCreator> permissions_creator_; |
263 | 264 |
264 // True iff we are waiting for a permission request to be issued. | 265 // True iff we are waiting for a permission request to be issued. |
265 bool waiting_for_permissions_; | 266 bool waiting_for_permissions_; |
266 | 267 |
267 base::WeakPtrFactory<ManagedUserService> weak_ptr_factory_; | 268 base::WeakPtrFactory<ManagedUserService> weak_ptr_factory_; |
268 }; | 269 }; |
269 | 270 |
270 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ | 271 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ |
OLD | NEW |