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

Side by Side Diff: chrome/renderer/extensions/event_bindings.cc

Issue 7774012: renderer/extensions: Forward declare a couple of v8 classes in EventBindings header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/extensions/event_bindings.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/event_bindings.h" 5 #include "chrome/renderer/extensions/event_bindings.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 13 matching lines...) Expand all
24 #include "content/renderer/v8_value_converter.h" 24 #include "content/renderer/v8_value_converter.h"
25 #include "googleurl/src/gurl.h" 25 #include "googleurl/src/gurl.h"
26 #include "grit/renderer_resources.h" 26 #include "grit/renderer_resources.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
34 #include "v8/include/v8.h"
34 35
35 using bindings_utils::CallFunctionInContext; 36 using bindings_utils::CallFunctionInContext;
36 using bindings_utils::ContextInfo; 37 using bindings_utils::ContextInfo;
37 using bindings_utils::ContextList; 38 using bindings_utils::ContextList;
38 using bindings_utils::GetContexts; 39 using bindings_utils::GetContexts;
39 using bindings_utils::GetInfoForCurrentContext; 40 using bindings_utils::GetInfoForCurrentContext;
40 using bindings_utils::GetStringResource; 41 using bindings_utils::GetStringResource;
41 using bindings_utils::ExtensionBase; 42 using bindings_utils::ExtensionBase;
42 using bindings_utils::GetPendingRequestMap; 43 using bindings_utils::GetPendingRequestMap;
43 using bindings_utils::PendingRequestMap; 44 using bindings_utils::PendingRequestMap;
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 // TODO(rafaelw): Consider only doing this check if function_name == 423 // TODO(rafaelw): Consider only doing this check if function_name ==
423 // "Event.dispatchJSON". 424 // "Event.dispatchJSON".
424 #ifndef NDEBUG 425 #ifndef NDEBUG
425 if (!retval.IsEmpty() && !retval->IsUndefined()) { 426 if (!retval.IsEmpty() && !retval->IsUndefined()) {
426 std::string error = *v8::String::AsciiValue(retval); 427 std::string error = *v8::String::AsciiValue(retval);
427 DCHECK(false) << error; 428 DCHECK(false) << error;
428 } 429 }
429 #endif 430 #endif
430 } 431 }
431 } 432 }
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/event_bindings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698