| Index: mojo/public/cpp/bindings/lib/validation_errors.h
|
| diff --git a/mojo/public/cpp/bindings/lib/validation_errors.h b/mojo/public/cpp/bindings/lib/validation_errors.h
|
| index 1884d253f3ab126509a30b179cece1bdd4964d04..7636e391dad4414dfff7659a04e75c12e9dd1ff4 100644
|
| --- a/mojo/public/cpp/bindings/lib/validation_errors.h
|
| +++ b/mojo/public/cpp/bindings/lib/validation_errors.h
|
| @@ -8,6 +8,7 @@
|
| #include "base/callback.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| +#include "mojo/public/cpp/bindings/bindings_export.h"
|
| #include "mojo/public/cpp/bindings/lib/validation_context.h"
|
|
|
| namespace mojo {
|
| @@ -75,20 +76,22 @@ enum ValidationError {
|
| VALIDATION_ERROR_MAX_RECURSION_DEPTH,
|
| };
|
|
|
| -const char* ValidationErrorToString(ValidationError error);
|
| +MOJO_CPP_BINDINGS_EXPORT const char* ValidationErrorToString(
|
| + ValidationError error);
|
|
|
| -void ReportValidationError(ValidationContext* context,
|
| - ValidationError error,
|
| - const char* description = nullptr);
|
| +MOJO_CPP_BINDINGS_EXPORT void ReportValidationError(
|
| + ValidationContext* context,
|
| + ValidationError error,
|
| + const char* description = nullptr);
|
|
|
| -void ReportValidationErrorForMessage(
|
| +MOJO_CPP_BINDINGS_EXPORT void ReportValidationErrorForMessage(
|
| mojo::Message* message,
|
| ValidationError error,
|
| const char* description = nullptr);
|
|
|
| // Only used by validation tests and when there is only one thread doing message
|
| // validation.
|
| -class ValidationErrorObserverForTesting {
|
| +class MOJO_CPP_BINDINGS_EXPORT ValidationErrorObserverForTesting {
|
| public:
|
| explicit ValidationErrorObserverForTesting(const base::Closure& callback);
|
| ~ValidationErrorObserverForTesting();
|
| @@ -110,11 +113,11 @@ class ValidationErrorObserverForTesting {
|
| //
|
| // The function returns true if the error is recorded (by a
|
| // SerializationWarningObserverForTesting object), false otherwise.
|
| -bool ReportSerializationWarning(ValidationError error);
|
| +MOJO_CPP_BINDINGS_EXPORT bool ReportSerializationWarning(ValidationError error);
|
|
|
| // Only used by serialization tests and when there is only one thread doing
|
| // message serialization.
|
| -class SerializationWarningObserverForTesting {
|
| +class MOJO_CPP_BINDINGS_EXPORT SerializationWarningObserverForTesting {
|
| public:
|
| SerializationWarningObserverForTesting();
|
| ~SerializationWarningObserverForTesting();
|
|
|