| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/renderer/extensions/chrome_v8_context_set.h" | 5 #include "chrome/renderer/extensions/chrome_v8_context_set.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/tracked_objects.h" | 9 #include "base/tracked_objects.h" |
| 10 #include "chrome/common/url_constants.h" |
| 10 #include "chrome/renderer/extensions/chrome_v8_context.h" | 11 #include "chrome/renderer/extensions/chrome_v8_context.h" |
| 11 #include "content/common/url_constants.h" | |
| 12 #include "content/public/renderer/v8_value_converter.h" | 12 #include "content/public/renderer/v8_value_converter.h" |
| 13 #include "content/renderer/render_thread.h" | 13 #include "content/renderer/render_thread.h" |
| 14 #include "content/renderer/render_view.h" | 14 #include "content/renderer/render_view.h" |
| 15 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 21 | 21 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // TODO(rafaelw): Consider only doing this check if function_name == | 160 // TODO(rafaelw): Consider only doing this check if function_name == |
| 161 // "Event.dispatchJSON". | 161 // "Event.dispatchJSON". |
| 162 #ifndef NDEBUG | 162 #ifndef NDEBUG |
| 163 if (!retval.IsEmpty() && !retval->IsUndefined()) { | 163 if (!retval.IsEmpty() && !retval->IsUndefined()) { |
| 164 std::string error = *v8::String::AsciiValue(retval); | 164 std::string error = *v8::String::AsciiValue(retval); |
| 165 DCHECK(false) << error; | 165 DCHECK(false) << error; |
| 166 } | 166 } |
| 167 #endif | 167 #endif |
| 168 } | 168 } |
| 169 } | 169 } |
| OLD | NEW |