| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOGGING_NATIVE_HANDLER_H_ | 5 #ifndef EXTENSIONS_RENDERER_LOGGING_NATIVE_HANDLER_H_ |
| 6 #define EXTENSIONS_RENDERER_LOGGING_NATIVE_HANDLER_H_ | 6 #define EXTENSIONS_RENDERER_LOGGING_NATIVE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "extensions/renderer/object_backed_native_handler.h" | 10 #include "extensions/renderer/object_backed_native_handler.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // Equivalent to CHECK(predicate) << message. | 21 // Equivalent to CHECK(predicate) << message. |
| 22 // | 22 // |
| 23 // void(predicate, message?) | 23 // void(predicate, message?) |
| 24 void Check(const v8::FunctionCallbackInfo<v8::Value>& args); | 24 void Check(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 25 | 25 |
| 26 // Equivalent to DCHECK(predicate) << message. | 26 // Equivalent to DCHECK(predicate) << message. |
| 27 // | 27 // |
| 28 // void(predicate, message?) | 28 // void(predicate, message?) |
| 29 void Dcheck(const v8::FunctionCallbackInfo<v8::Value>& args); | 29 void Dcheck(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 30 | 30 |
| 31 // Equivalent to DCHECK_IS_ON. | 31 // Equivalent to DCHECK_IS_OFF. |
| 32 // | 32 // |
| 33 // bool() | 33 // bool() |
| 34 void DcheckIsOn(const v8::FunctionCallbackInfo<v8::Value>& args); | 34 void DcheckIsOff(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 35 | 35 |
| 36 // Equivalent to LOG(INFO) << message. | 36 // Equivalent to LOG(INFO) << message. |
| 37 // | 37 // |
| 38 // void(message) | 38 // void(message) |
| 39 void Log(const v8::FunctionCallbackInfo<v8::Value>& args); | 39 void Log(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 40 | 40 |
| 41 // Equivalent to LOG(WARNING) << message. | 41 // Equivalent to LOG(WARNING) << message. |
| 42 // | 42 // |
| 43 // void(message) | 43 // void(message) |
| 44 void Warning(const v8::FunctionCallbackInfo<v8::Value>& args); | 44 void Warning(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 45 | 45 |
| 46 void ParseArgs(const v8::FunctionCallbackInfo<v8::Value>& args, | 46 void ParseArgs(const v8::FunctionCallbackInfo<v8::Value>& args, |
| 47 bool* check_value, | 47 bool* check_value, |
| 48 std::string* error_message); | 48 std::string* error_message); |
| 49 | 49 |
| 50 std::string ToStringOrDefault(const v8::Handle<v8::String>& v8_string, | 50 std::string ToStringOrDefault(const v8::Handle<v8::String>& v8_string, |
| 51 const std::string& dflt); | 51 const std::string& dflt); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace extensions | 54 } // namespace extensions |
| 55 | 55 |
| 56 #endif // EXTENSIONS_RENDERER_LOGGING_NATIVE_HANDLER_H_ | 56 #endif // EXTENSIONS_RENDERER_LOGGING_NATIVE_HANDLER_H_ |
| OLD | NEW |