Move network-related code to net/ folder

This commit is contained in:
Marshall Greenblatt
2015-11-25 21:53:12 -05:00
parent 6cccc3b8a7
commit 269aaa2c3c
58 changed files with 173 additions and 167 deletions

View File

@@ -6,7 +6,7 @@
// IPC messages for CEF.
// Multiply-included message file, hence no include guard.
#include "libcef/common/upload_data.h"
#include "libcef/common/net/upload_data.h"
#include "base/memory/shared_memory.h"
#include "base/values.h"

View File

@@ -10,8 +10,8 @@
#include "libcef/browser/extensions/pdf_extension_util.h"
#include "libcef/common/cef_switches.h"
#include "libcef/common/extensions/extensions_util.h"
#include "libcef/common/net/scheme_registration.h"
#include "libcef/common/scheme_registrar_impl.h"
#include "libcef/common/scheme_registration.h"
#include "base/command_line.h"
#include "base/logging.h"

View File

@@ -2,7 +2,8 @@
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "libcef/common/http_header_utils.h"
#include "libcef/common/net/http_header_utils.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"

View File

@@ -2,8 +2,8 @@
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#ifndef CEF_LIBCEF_COMMON_HTTP_HEADER_UTILS_H_
#define CEF_LIBCEF_COMMON_HTTP_HEADER_UTILS_H_
#ifndef CEF_LIBCEF_COMMON_NET_HTTP_HEADER_UTILS_H_
#define CEF_LIBCEF_COMMON_NET_HTTP_HEADER_UTILS_H_
#pragma once
#include <string>
@@ -19,4 +19,4 @@ void ParseHeaders(const std::string& header_str, HeaderMap& map);
}; // namespace HttpHeaderUtils
#endif // CEF_LIBCEF_COMMON_HTTP_HEADER_UTILS_H_
#endif // CEF_LIBCEF_COMMON_NET_HTTP_HEADER_UTILS_H_

View File

@@ -3,7 +3,7 @@
// can be found in the LICENSE file.
#include "libcef/common/content_client.h"
#include "libcef/common/net_resource_provider.h"
#include "libcef/common/net/net_resource_provider.h"
base::StringPiece NetResourceProvider(int key) {
return CefContentClient::Get()->GetDataResource(key, ui::SCALE_FACTOR_NONE);

View File

@@ -2,7 +2,8 @@
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "libcef/common/scheme_registration.h"
#include "libcef/common/net/scheme_registration.h"
#include "libcef/common/content_client.h"
#include "content/public/common/url_constants.h"

View File

@@ -2,8 +2,8 @@
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#ifndef CEF_LIBCEF_COMMON_SCHEME_REGISTRATION_H_
#define CEF_LIBCEF_COMMON_SCHEME_REGISTRATION_H_
#ifndef CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
#define CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
#pragma once
#include <string>
@@ -27,4 +27,4 @@ bool IsInternalProtectedScheme(const std::string& scheme);
} // namespace scheme
#endif // CEF_LIBCEF_COMMON_SCHEME_REGISTRATION_H_
#endif // CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cef/libcef/common/upload_data.h"
#include "cef/libcef/common/net/upload_data.h"
#include "base/logging.h"

View File

@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CEF_LIBCEF_COMMON_UPLOAD_DATA_H_
#define CEF_LIBCEF_COMMON_UPLOAD_DATA_H_
#ifndef CEF_LIBCEF_COMMON_NET_UPLOAD_DATA_H_
#define CEF_LIBCEF_COMMON_NET_UPLOAD_DATA_H_
#include "libcef/common/upload_element.h"
#include "libcef/common/net/upload_element.h"
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
@@ -81,4 +81,4 @@ class NET_EXPORT UploadData
} // namespace net
#endif // CEF_LIBCEF_COMMON_UPLOAD_DATA_H_
#endif // CEF_LIBCEF_COMMON_NET_UPLOAD_DATA_H_

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "libcef/common/upload_element.h"
#include "libcef/common/net/upload_element.h"
#include <algorithm>

View File

@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CEF_LIBCEF_COMMON_UPLOAD_ELEMENT_H_
#define CEF_LIBCEF_COMMON_UPLOAD_ELEMENT_H_
#ifndef CEF_LIBCEF_COMMON_NET_UPLOAD_ELEMENT_H_
#define CEF_LIBCEF_COMMON_NET_UPLOAD_ELEMENT_H_
#include <vector>
@@ -107,4 +107,4 @@ inline bool operator!=(const UploadElement& a,
} // namespace net
#endif // CEF_LIBCEF_COMMON_UPLOAD_ELEMENT_H_
#endif // CEF_LIBCEF_COMMON_NET_UPLOAD_ELEMENT_H_

View File

@@ -5,10 +5,10 @@
#include <string>
#include <vector>
#include "libcef/common/http_header_utils.h"
#include "libcef/common/net/http_header_utils.h"
#include "libcef/common/net/upload_data.h"
#include "libcef/common/request_impl.h"
#include "libcef/common/task_runner_impl.h"
#include "libcef/common/upload_data.h"
#include "base/logging.h"
#include "components/navigation_interception/navigation_params.h"