Make CEF compliant with Google/Chromium style (issue #473).

- Add a new check_style tool based on Google's cpplint that can be used to verify compliance of pending changes and specific files/directories.
- Update existing CEF source code to be compliant with the style requirements.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@463 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-01-09 23:46:23 +00:00
parent 9cc61f448b
commit 1073577d03
558 changed files with 9002 additions and 10977 deletions

View File

@@ -2,8 +2,9 @@
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#ifndef _REQUEST_IMPL_H
#define _REQUEST_IMPL_H
#ifndef CEF_LIBCEF_REQUEST_IMPL_H_
#define CEF_LIBCEF_REQUEST_IMPL_H_
#pragma once
#include "include/cef_request.h"
#include "net/base/upload_data.h"
@@ -16,9 +17,8 @@ class URLRequest;
};
// Implementation of CefRequest
class CefRequestImpl : public CefRequest
{
public:
class CefRequestImpl : public CefRequest {
public:
CefRequestImpl();
~CefRequestImpl() {}
@@ -50,7 +50,7 @@ public:
static void SetHeaderMap(const HeaderMap& map,
WebKit::WebURLRequest& request);
protected:
protected:
CefString url_;
CefString method_;
CefRefPtr<CefPostData> postdata_;
@@ -65,9 +65,8 @@ protected:
};
// Implementation of CefPostData
class CefPostDataImpl : public CefPostData
{
public:
class CefPostDataImpl : public CefPostData {
public:
CefPostDataImpl();
~CefPostDataImpl() {}
@@ -82,7 +81,7 @@ public:
void Set(const WebKit::WebHTTPBody& data);
void Get(WebKit::WebHTTPBody& data);
protected:
protected:
ElementVector elements_;
IMPLEMENT_REFCOUNTING(CefPostDataImpl);
@@ -90,9 +89,8 @@ protected:
};
// Implementation of CefPostDataElement
class CefPostDataElementImpl : public CefPostDataElement
{
public:
class CefPostDataElementImpl : public CefPostDataElement {
public:
CefPostDataElementImpl();
~CefPostDataElementImpl();
@@ -111,7 +109,7 @@ public:
void Set(const WebKit::WebHTTPBody::Element& element);
void Get(WebKit::WebHTTPBody::Element& element);
protected:
protected:
Type type_;
union {
struct {
@@ -125,4 +123,4 @@ protected:
IMPLEMENT_LOCKING(CefPostDataElementImpl);
};
#endif // _REQUEST_IMPL_H
#endif // CEF_LIBCEF_REQUEST_IMPL_H_