| 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_OFFLINE_PAGES_CLIENT_POLICY_CONTROLLER_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_CLIENT_POLICY_CONTROLLER_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CLIENT_POLICY_CONTROLLER_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_CLIENT_POLICY_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "components/offline_pages/offline_page_client_policy.h" | 16 #include "components/offline_pages/core/offline_page_client_policy.h" |
| 17 | 17 |
| 18 namespace offline_pages { | 18 namespace offline_pages { |
| 19 | 19 |
| 20 // This is the class which is a singleton for offline page model | 20 // This is the class which is a singleton for offline page model |
| 21 // to get client policies based on namespaces. | 21 // to get client policies based on namespaces. |
| 22 class ClientPolicyController { | 22 class ClientPolicyController { |
| 23 public: | 23 public: |
| 24 ClientPolicyController(); | 24 ClientPolicyController(); |
| 25 ~ClientPolicyController(); | 25 ~ClientPolicyController(); |
| 26 | 26 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Memoizing results. | 67 // Memoizing results. |
| 68 mutable std::unique_ptr<std::vector<std::string>> download_namespace_cache_; | 68 mutable std::unique_ptr<std::vector<std::string>> download_namespace_cache_; |
| 69 mutable std::unique_ptr<std::vector<std::string>> recent_tab_namespace_cache_; | 69 mutable std::unique_ptr<std::vector<std::string>> recent_tab_namespace_cache_; |
| 70 mutable std::unique_ptr<std::vector<std::string>> show_in_original_tab_cache_; | 70 mutable std::unique_ptr<std::vector<std::string>> show_in_original_tab_cache_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(ClientPolicyController); | 72 DISALLOW_COPY_AND_ASSIGN(ClientPolicyController); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace offline_pages | 75 } // namespace offline_pages |
| 76 | 76 |
| 77 #endif // COMPONENTS_OFFLINE_PAGES_CLIENT_POLICY_CONTROLLER_H_ | 77 #endif // COMPONENTS_OFFLINE_PAGES_CORE_CLIENT_POLICY_CONTROLLER_H_ |
| OLD | NEW |