Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1348)

Side by Side Diff: extensions/renderer/bindings/api_invocation_errors.h

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « extensions/renderer/bindings/api_event_listeners_unittest.cc ('k') | extensions/renderer/bindings/api_invocation_errors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698