Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebSetSinkIdError.h
blob557c48873748224c4cbd61fcd2b43af0899365d3
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebSetSinkIdError_h
6 #define WebSetSinkIdError_h
8 #include "public/platform/WebString.h"
10 namespace blink {
12 struct WebSetSinkIdError {
13 enum ErrorType {
14 ErrorTypeNotFound = 1,
15 ErrorTypeSecurity,
16 ErrorTypeAbort,
17 ErrorTypeNotSupported,
18 ErrorTypeLast = ErrorTypeNotSupported
21 WebSetSinkIdError(ErrorType errorType, const WebString& message)
22 : errorType(errorType)
23 , message(message)
27 ErrorType errorType;
28 WebString message;
31 } // namespace blink
33 #endif // WebSetSinkIdError_h