OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #undef kUnlimitedPages | |
6 #define kUnlimitedPages 0 | |
7 | |
8 /** | |
9 * This macro is used to define client policies. | |
10 * For some details please see offline_page_client_policy.h | |
11 * | |
12 * Use Example: | |
13 * POLICY(name_space, // The name_space of this policy. | |
14 * type, // TEMPORARY/PERSISTENT, defined in LifetimePolicy | |
15 * expire_days, // Number of days before expire of pages, in days. | |
16 * page_limit, // As defined in client policy. Use kUnlimitedPages | |
17 * // for unlimited number. | |
18 */ | |
19 | |
20 #undef CLIENT_POLICIES | |
21 #define CLIENT_POLICIES \ | |
fgorski
2016/05/02 23:10:31
no let's have a static method instead of a macro f
romax
2016/05/03 00:29:24
Done.
| |
22 POLICY(bookmark, TEMPORARY, 7, kUnlimitedPages) \ | |
23 POLICY(last_n, TEMPORARY, 2, 20) \ | |
24 POLICY(defaultPolicy, TEMPORARY, 1, kUnlimitedPages) | |
25 | |
26 #undef kUnlimitedPages | |
OLD | NEW |