blob: 270cf16252c2188102edf9abb44bfbdbd5884c8d [file] [log] [blame]
// Copyright 2018 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef STARBOARD_ANDROID_SHARED_COBALT_FEEDBACK_SERVICE_H_
#define STARBOARD_ANDROID_SHARED_COBALT_FEEDBACK_SERVICE_H_
#include <string>
#include "cobalt/script/array_buffer.h"
#include "cobalt/script/exception_state.h"
#include "cobalt/script/value_handle.h"
#include "cobalt/script/wrappable.h"
namespace cobalt {
namespace webapi_extension {
class FeedbackService : public ::cobalt::script::Wrappable {
public:
void SendFeedback(const script::ValueHandleHolder& product_specific_data,
const std::string& category_tag,
script::ExceptionState* exception_state);
void SendFeedback(const script::ValueHandleHolder& product_specific_data,
const std::string& category_tag,
const script::Handle<script::ArrayBuffer>& screenshot_data,
script::ExceptionState* exception_state);
FeedbackService() = default;
FeedbackService(const FeedbackService&) = delete;
FeedbackService& operator=(const FeedbackService&) = delete;
DEFINE_WRAPPABLE_TYPE(FeedbackService);
};
} // namespace webapi_extension
} // namespace cobalt
#endif // STARBOARD_ANDROID_SHARED_COBALT_FEEDBACK_SERVICE_H_