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

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

Issue 173263: Change the way json_schema.js is loaded. This is required so (Closed)
Patch Set: New approach using chromeHidden Created 11 years, 4 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
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/renderer/extensions/js_only_v8_extensions.h » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/extension_process_bindings.h" 5 #include "chrome/renderer/extensions/extension_process_bindings.h"
6 6
7 #include "base/singleton.h" 7 #include "base/singleton.h"
8 #include "chrome/common/extensions/extension.h" 8 #include "chrome/common/extensions/extension.h"
9 #include "chrome/common/extensions/url_pattern.h" 9 #include "chrome/common/extensions/url_pattern.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/renderer/extensions/bindings_utils.h" 12 #include "chrome/renderer/extensions/bindings_utils.h"
13 #include "chrome/renderer/extensions/event_bindings.h" 13 #include "chrome/renderer/extensions/event_bindings.h"
14 #include "chrome/renderer/extensions/js_only_v8_extensions.h"
14 #include "chrome/renderer/extensions/renderer_extension_bindings.h" 15 #include "chrome/renderer/extensions/renderer_extension_bindings.h"
15 #include "chrome/renderer/js_only_v8_extensions.h"
16 #include "chrome/renderer/render_view.h" 16 #include "chrome/renderer/render_view.h"
17 #include "grit/common_resources.h" 17 #include "grit/common_resources.h"
18 #include "grit/renderer_resources.h" 18 #include "grit/renderer_resources.h"
19 #include "webkit/api/public/WebFrame.h" 19 #include "webkit/api/public/WebFrame.h"
20 #include "webkit/api/public/WebURL.h" 20 #include "webkit/api/public/WebURL.h"
21 #include "webkit/api/public/WebKit.h" 21 #include "webkit/api/public/WebKit.h"
22 22
23 using bindings_utils::GetStringResource; 23 using bindings_utils::GetStringResource;
24 using bindings_utils::ContextInfo; 24 using bindings_utils::ContextInfo;
25 using bindings_utils::ContextList; 25 using bindings_utils::ContextList;
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 v8::Local<v8::Function> function = 406 v8::Local<v8::Function> function =
407 v8::Local<v8::Function>::Cast(console_error); 407 v8::Local<v8::Function>::Cast(console_error);
408 v8::Local<v8::Value> argv[] = { v8::String::New(error_msg.c_str()) }; 408 v8::Local<v8::Value> argv[] = { v8::String::New(error_msg.c_str()) };
409 if (!function.IsEmpty()) 409 if (!function.IsEmpty())
410 function->Call(console->ToObject(), arraysize(argv), argv); 410 function->Call(console->ToObject(), arraysize(argv), argv);
411 411
412 return v8::Undefined(); 412 return v8::Undefined();
413 #endif 413 #endif
414 } 414 }
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/renderer/extensions/js_only_v8_extensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698