| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_RENDERER_API_INVOCATION_ERRORS_H_ | 5 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_ |
| 6 #define EXTENSIONS_RENDERER_API_INVOCATION_ERRORS_H_ | 6 #define EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 12 | 12 |
| 13 // A collection of error-related strings and utilities for parsing API | 13 // A collection of error-related strings and utilities for parsing API |
| 14 // invocations. | 14 // invocations. |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 namespace api_errors { | 16 namespace api_errors { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Returns a message indicating that an API method was called with an invalid | 63 // Returns a message indicating that an API method was called with an invalid |
| 64 // signature. | 64 // signature. |
| 65 std::string InvocationError(const std::string& method_name, | 65 std::string InvocationError(const std::string& method_name, |
| 66 const std::string& expected_signature, | 66 const std::string& expected_signature, |
| 67 const std::string& error); | 67 const std::string& error); |
| 68 | 68 |
| 69 } // namespace api_errors | 69 } // namespace api_errors |
| 70 } // namespace extensions | 70 } // namespace extensions |
| 71 | 71 |
| 72 #endif // EXTENSIONS_RENDERER_API_INVOCATION_ERRORS_H_ | 72 #endif // EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_ |
| OLD | NEW |