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

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

Issue 12300041: Add nativeMessaging extension permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/dispatcher.h" 5 #include "chrome/renderer/extensions/dispatcher.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 module_system->RegisterNativeHandler("i18n", 603 module_system->RegisterNativeHandler("i18n",
604 scoped_ptr<NativeHandler>(new I18NCustomBindings())); 604 scoped_ptr<NativeHandler>(new I18NCustomBindings()));
605 module_system->RegisterNativeHandler("mediaGalleries", 605 module_system->RegisterNativeHandler("mediaGalleries",
606 scoped_ptr<NativeHandler>(new MediaGalleriesCustomBindings())); 606 scoped_ptr<NativeHandler>(new MediaGalleriesCustomBindings()));
607 module_system->RegisterNativeHandler("page_actions", 607 module_system->RegisterNativeHandler("page_actions",
608 scoped_ptr<NativeHandler>( 608 scoped_ptr<NativeHandler>(
609 new PageActionsCustomBindings(this))); 609 new PageActionsCustomBindings(this)));
610 module_system->RegisterNativeHandler("page_capture", 610 module_system->RegisterNativeHandler("page_capture",
611 scoped_ptr<NativeHandler>(new PageCaptureCustomBindings())); 611 scoped_ptr<NativeHandler>(new PageCaptureCustomBindings()));
612 module_system->RegisterNativeHandler("runtime", 612 module_system->RegisterNativeHandler("runtime",
613 scoped_ptr<NativeHandler>(new RuntimeCustomBindings(context))); 613 scoped_ptr<NativeHandler>(new RuntimeCustomBindings(this, context)));
614 module_system->RegisterNativeHandler("tabs", 614 module_system->RegisterNativeHandler("tabs",
615 scoped_ptr<NativeHandler>(new TabsCustomBindings())); 615 scoped_ptr<NativeHandler>(new TabsCustomBindings()));
616 module_system->RegisterNativeHandler("tts", 616 module_system->RegisterNativeHandler("tts",
617 scoped_ptr<NativeHandler>(new TTSCustomBindings())); 617 scoped_ptr<NativeHandler>(new TTSCustomBindings()));
618 module_system->RegisterNativeHandler("web_request", 618 module_system->RegisterNativeHandler("web_request",
619 scoped_ptr<NativeHandler>(new WebRequestCustomBindings())); 619 scoped_ptr<NativeHandler>(new WebRequestCustomBindings()));
620 module_system->RegisterNativeHandler("webstore", 620 module_system->RegisterNativeHandler("webstore",
621 scoped_ptr<NativeHandler>(new WebstoreBindings(this, context))); 621 scoped_ptr<NativeHandler>(new WebstoreBindings(this, context)));
622 } 622 }
623 623
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str()); 1163 std::string error_msg = base::StringPrintf(kMessage, function_name.c_str());
1164 v8::ThrowException( 1164 v8::ThrowException(
1165 v8::Exception::Error(v8::String::New(error_msg.c_str()))); 1165 v8::Exception::Error(v8::String::New(error_msg.c_str())));
1166 return false; 1166 return false;
1167 } 1167 }
1168 1168
1169 return true; 1169 return true;
1170 } 1170 }
1171 1171
1172 } // namespace extensions 1172 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/permissions/permission_set_unittest.cc ('k') | chrome/renderer/extensions/runtime_custom_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698