// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYNC_UTIL_EXPERIMENTS_
#define SYNC_UTIL_EXPERIMENTS_
#include <string>
#include "sync/internal_api/public/base/model_type.h"
namespace syncer {
const char kFaviconSyncTag[] = "favicon_sync";
const char kPreCommitUpdateAvoidanceTag[] = "pre_commit_update_avoidance";
const char kGCMChannelTag[] = "gcm_channel";
const char kEnhancedBookmarksTag[] = "enhanced_bookmarks";
const char kGCMInvalidationsTag[] = "gcm_invalidations";
// A structure to hold the enable status of experimental sync features.
struct Experiments {
enum GCMChannelState {
UNSET,
SUPPRESSED,
ENABLED,
};
Experiments()
: favicon_sync_limit(200),
gcm_channel_state(UNSET),
enhanced_bookmarks_enabled(false),
gcm_invalidations_enabled(true) // By default GCM channel is enabled.
{}
bool Matches(const Experiments& rhs) {
return (favicon_sync_limit == rhs.favicon_sync_limit &&
gcm_channel_state == rhs.gcm_channel_state &&
enhanced_bookmarks_enabled == rhs.enhanced_bookmarks_enabled &&
enhanced_bookmarks_ext_id == rhs.enhanced_bookmarks_ext_id &&
gcm_invalidations_enabled == rhs.gcm_invalidations_enabled);
}
// The number of favicons that a client is permitted to sync.
int favicon_sync_limit;
// Enable state of the GCM channel.
GCMChannelState gcm_channel_state;
// Enable the enhanced bookmarks sync datatype.
bool enhanced_bookmarks_enabled;
// Enable invalidations over GCM channel.
bool gcm_invalidations_enabled;
// Enhanced bookmarks extension id.
std::string enhanced_bookmarks_ext_id;
};
} // namespace syncer
#endif // SYNC_UTIL_EXPERIMENTS_
svga_drm_public.rar_Hold_hold enable
版权申诉
17 浏览量
2022-09-14
22:33:48
上传
评论
收藏 2KB RAR 举报
御道御小黑
- 粉丝: 58
- 资源: 1万+
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0