Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

sync_types.h

// Copyright (c) 2009 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 CHROME_BROWSER_SYNC_UTIL_SYNC_TYPES_H_
#define CHROME_BROWSER_SYNC_UTIL_SYNC_TYPES_H_

#include <iosfwd>
#include <string>

#include "base/basictypes.h"
#include "base/string_util.h"
#include "build/build_config.h"

#if !defined(OS_WIN)
// Mac OS X typedef's BOOL to signed char, so we do that on Linux too.
typedef signed char BOOL;
typedef int32 LONG;
typedef uint32 DWORD;
typedef int64 LONGLONG;
typedef uint64 ULONGLONG;

#define MAX_PATH PATH_MAX
#if !defined(TRUE)
const BOOL TRUE = 1;
#endif
#if !defined(FALSE)
const BOOL FALSE = 0;
#endif
#endif

inline size_t CountBytes(const std::string &s) {
  return s.size() * sizeof(std::string::value_type);
}

const size_t kSyncProtocolMaxNameLengthBytes = 255;

#endif  // CHROME_BROWSER_SYNC_UTIL_SYNC_TYPES_H_

Generated by  Doxygen 1.6.0   Back to index