Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: components/offline_pages/client_policies.h

Issue 1934743003: Implementing client policy and controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698