Files
brave-core/common/common_message_generator.cc
T
Brian R. Bondy e76a1cd993 Remove code to define destructors out-of-line
commit b6f010b107495bd0487353edfb379c441c9969b6
Author: Hans Wennborg <hans@chromium.org>
Date:   Thu Nov 22 07:26:07 2018 +0000

    IPC_STRUCT_BEGIN: Don't explicitly default copy constructors etc

    The classes may not actually be copyable, copy-assignable, etc. Previously the
    compiler would not complain until trying to *use* the defaulted ctor/operator,
    but the new -Wdefaulted-function-deleted warning warns about this up front.

    (As a concrete example, ExtensionMsg_TabConnectionInfo isn't copy-assignable
    because of base::DictionaryValue member, which is a base::Value, which can't
    be copied.)

    To ensure these structs are still movable, remove the user-declared destructor.
    This is also a simplification in that it removes all the code that was necessary
    to define that destructor out-of-line.
2018-12-17 19:09:52 -05:00

32 lines
943 B
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// Get basic type definitions.
#define IPC_MESSAGE_IMPL
#include "brave/common/common_message_generator.h"
// Generate constructors.
#include "ipc/struct_constructor_macros.h"
#include "brave/common/common_message_generator.h"
// Generate param traits write methods.
#include "ipc/param_traits_write_macros.h"
namespace IPC {
#include "brave/common/common_message_generator.h"
} // namespace IPC
// Generate param traits read methods.
#include "ipc/param_traits_read_macros.h"
namespace IPC {
#include "brave/common/common_message_generator.h"
} // namespace IPC
// Generate param traits log methods.
#include "ipc/param_traits_log_macros.h"
namespace IPC {
#include "brave/common/common_message_generator.h"
} // namespace IPC