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

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 8743017: Real (but naive) UDP socket sending. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial. Created 9 years 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) 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/browser/extensions/extension_function_dispatcher.h" 5 #include "chrome/browser/extensions/extension_function_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 RegisterFunction<DownloadsDragFunction>(); 465 RegisterFunction<DownloadsDragFunction>();
466 466
467 // PageCapture 467 // PageCapture
468 RegisterFunction<PageCaptureSaveAsMHTMLFunction>(); 468 RegisterFunction<PageCaptureSaveAsMHTMLFunction>();
469 469
470 // TopSites 470 // TopSites
471 RegisterFunction<GetTopSitesFunction>(); 471 RegisterFunction<GetTopSitesFunction>();
472 472
473 // Sockets 473 // Sockets
474 RegisterFunction<extensions::SocketCreateFunction>(); 474 RegisterFunction<extensions::SocketCreateFunction>();
475 RegisterFunction<extensions::SocketDestroyFunction>();
475 RegisterFunction<extensions::SocketConnectFunction>(); 476 RegisterFunction<extensions::SocketConnectFunction>();
476 RegisterFunction<extensions::SocketDisconnectFunction>(); 477 RegisterFunction<extensions::SocketCloseFunction>();
477 RegisterFunction<extensions::SocketSendFunction>(); 478 RegisterFunction<extensions::SocketWriteFunction>();
478 } 479 }
479 480
480 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { 481 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) {
481 for (FactoryMap::iterator iter = factories_.begin(); 482 for (FactoryMap::iterator iter = factories_.begin();
482 iter != factories_.end(); ++iter) { 483 iter != factories_.end(); ++iter) {
483 names->push_back(iter->first); 484 names->push_back(iter->first);
484 } 485 }
485 } 486 }
486 487
487 bool FactoryRegistry::OverrideFunction(const std::string& name, 488 bool FactoryRegistry::OverrideFunction(const std::string& name,
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 return function; 683 return function;
683 } 684 }
684 685
685 // static 686 // static
686 void ExtensionFunctionDispatcher::SendAccessDenied( 687 void ExtensionFunctionDispatcher::SendAccessDenied(
687 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 688 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
688 ipc_sender->Send(new ExtensionMsg_Response( 689 ipc_sender->Send(new ExtensionMsg_Response(
689 routing_id, request_id, false, std::string(), 690 routing_id, request_id, false, std::string(),
690 "Access to extension API denied.")); 691 "Access to extension API denied."));
691 } 692 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/socket_api.h » ('j') | chrome/browser/extensions/socket_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698