Update to Chromium revision 241258.

- Update tracing implementation to use the new file-based approach (issue #1157).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1549 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-12-17 22:04:35 +00:00
parent 992cc56583
commit 099664fba0
76 changed files with 1239 additions and 908 deletions

View File

@@ -0,0 +1,51 @@
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
#include "libcef_dll/cpptoc/end_tracing_callback_cpptoc.h"
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK end_tracing_callback_on_end_tracing_complete(
struct _cef_end_tracing_callback_t* self,
const cef_string_t* tracing_file) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: tracing_file; type: string_byref_const
DCHECK(tracing_file);
if (!tracing_file)
return;
// Execute
CefEndTracingCallbackCppToC::Get(self)->OnEndTracingComplete(
CefString(tracing_file));
}
// CONSTRUCTOR - Do not edit by hand.
CefEndTracingCallbackCppToC::CefEndTracingCallbackCppToC(
CefEndTracingCallback* cls)
: CefCppToC<CefEndTracingCallbackCppToC, CefEndTracingCallback,
cef_end_tracing_callback_t>(cls) {
struct_.struct_.on_end_tracing_complete =
end_tracing_callback_on_end_tracing_complete;
}
#ifndef NDEBUG
template<> long CefCppToC<CefEndTracingCallbackCppToC, CefEndTracingCallback,
cef_end_tracing_callback_t>::DebugObjCt = 0;
#endif

View File

@@ -10,8 +10,8 @@
// for more information.
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_TRACE_CLIENT_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_TRACE_CLIENT_CPPTOC_H_
#ifndef CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
#pragma once
#ifndef USING_CEF_SHARED
@@ -24,14 +24,14 @@
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed wrapper-side only.
class CefTraceClientCppToC
: public CefCppToC<CefTraceClientCppToC, CefTraceClient,
cef_trace_client_t> {
class CefEndTracingCallbackCppToC
: public CefCppToC<CefEndTracingCallbackCppToC, CefEndTracingCallback,
cef_end_tracing_callback_t> {
public:
explicit CefTraceClientCppToC(CefTraceClient* cls);
virtual ~CefTraceClientCppToC() {}
explicit CefEndTracingCallbackCppToC(CefEndTracingCallback* cls);
virtual ~CefEndTracingCallbackCppToC() {}
};
#endif // USING_CEF_SHARED
#endif // CEF_LIBCEF_DLL_CPPTOC_TRACE_CLIENT_CPPTOC_H_
#endif // CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_

View File

@@ -1,79 +0,0 @@
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
#include "libcef_dll/cpptoc/trace_client_cpptoc.h"
// MEMBER FUNCTIONS - Body may be edited by hand.
void CEF_CALLBACK trace_client_on_trace_data_collected(
struct _cef_trace_client_t* self, const char* fragment,
size_t fragment_size) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: fragment; type: simple_byaddr
DCHECK(fragment);
if (!fragment)
return;
// Execute
CefTraceClientCppToC::Get(self)->OnTraceDataCollected(
fragment,
fragment_size);
}
void CEF_CALLBACK trace_client_on_trace_buffer_percent_full_reply(
struct _cef_trace_client_t* self, float percent_full) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Execute
CefTraceClientCppToC::Get(self)->OnTraceBufferPercentFullReply(
percent_full);
}
void CEF_CALLBACK trace_client_on_end_tracing_complete(
struct _cef_trace_client_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Execute
CefTraceClientCppToC::Get(self)->OnEndTracingComplete();
}
// CONSTRUCTOR - Do not edit by hand.
CefTraceClientCppToC::CefTraceClientCppToC(CefTraceClient* cls)
: CefCppToC<CefTraceClientCppToC, CefTraceClient, cef_trace_client_t>(cls) {
struct_.struct_.on_trace_data_collected =
trace_client_on_trace_data_collected;
struct_.struct_.on_trace_buffer_percent_full_reply =
trace_client_on_trace_buffer_percent_full_reply;
struct_.struct_.on_end_tracing_complete =
trace_client_on_end_tracing_complete;
}
#ifndef NDEBUG
template<> long CefCppToC<CefTraceClientCppToC, CefTraceClient,
cef_trace_client_t>::DebugObjCt = 0;
#endif