Chromium Code Reviews| 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_OFFLINE_PAGE_CLIENT_POLICY_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_CLIENT_POLICY_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_CLIENT_POLICY_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_CLIENT_POLICY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 | 41 |
| 42 // The struct describing policies for various namespaces (Bookmark, Last-N etc.) | 42 // The struct describing policies for various namespaces (Bookmark, Last-N etc.) |
| 43 // used by offline page model. The name_space is supposed to be key, so that | 43 // used by offline page model. The name_space is supposed to be key, so that |
| 44 // it's sufficient to compare name_space only when doing comparisons. | 44 // it's sufficient to compare name_space only when doing comparisons. |
| 45 struct OfflinePageClientPolicy { | 45 struct OfflinePageClientPolicy { |
| 46 // Namespace to which the policy applied. | 46 // Namespace to which the policy applied. |
| 47 std::string name_space; | 47 std::string name_space; |
| 48 | 48 |
| 49 // Policy to control the lifetime of a page generated by this namespace. | 49 // Policy to control the lifetime of a page generated by this namespace. |
| 50 LifetimePolicy lifetime_policy; | 50 LifetimePolicy lifetime_policy; |
| 51 | |
| 52 // How many pages are allowed for an URL. | |
|
Dmitry Titov
2016/06/23 04:23:15
It looks the comment can be made clearer - how abo
romax
2016/06/23 22:24:03
Done.
| |
| 53 size_t pages_allowed_per_url; | |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 } // namespace offline_pages | 56 } // namespace offline_pages |
| 54 | 57 |
| 55 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_CLIENT_POLICY_H_ | 58 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_CLIENT_POLICY_H_ |
| OLD | NEW |