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

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

Issue 8772031: Add a JS API for detecting WebGL availability. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_webstore_private_api.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) 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 RegisterFunction<IsAllowedIncognitoAccessFunction>(); 354 RegisterFunction<IsAllowedIncognitoAccessFunction>();
355 RegisterFunction<IsAllowedFileSchemeAccessFunction>(); 355 RegisterFunction<IsAllowedFileSchemeAccessFunction>();
356 356
357 // WebstorePrivate. 357 // WebstorePrivate.
358 RegisterFunction<GetBrowserLoginFunction>(); 358 RegisterFunction<GetBrowserLoginFunction>();
359 RegisterFunction<GetStoreLoginFunction>(); 359 RegisterFunction<GetStoreLoginFunction>();
360 RegisterFunction<SetStoreLoginFunction>(); 360 RegisterFunction<SetStoreLoginFunction>();
361 RegisterFunction<BeginInstallWithManifestFunction>(); 361 RegisterFunction<BeginInstallWithManifestFunction>();
362 RegisterFunction<CompleteInstallFunction>(); 362 RegisterFunction<CompleteInstallFunction>();
363 RegisterFunction<SilentlyInstallFunction>(); 363 RegisterFunction<SilentlyInstallFunction>();
364 RegisterFunction<GetWebGLStatusFunction>();
364 365
365 // WebNavigation. 366 // WebNavigation.
366 RegisterFunction<GetFrameFunction>(); 367 RegisterFunction<GetFrameFunction>();
367 RegisterFunction<GetAllFramesFunction>(); 368 RegisterFunction<GetAllFramesFunction>();
368 369
369 // WebRequest. 370 // WebRequest.
370 RegisterFunction<WebRequestAddEventListener>(); 371 RegisterFunction<WebRequestAddEventListener>();
371 RegisterFunction<WebRequestEventHandled>(); 372 RegisterFunction<WebRequestEventHandled>();
372 RegisterFunction<WebRequestHandlerBehaviorChanged>(); 373 RegisterFunction<WebRequestHandlerBehaviorChanged>();
373 374
(...skipping 308 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/extension_webstore_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698