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

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

Issue 11038021: Implement Chrome Extension TabCapture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Media class renames/moves Created 8 years, 2 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); 649 source_map_.RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS);
650 source_map_.RegisterSource("pageActions", 650 source_map_.RegisterSource("pageActions",
651 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS); 651 IDR_PAGE_ACTIONS_CUSTOM_BINDINGS_JS);
652 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); 652 source_map_.RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS);
653 source_map_.RegisterSource("pageCapture", 653 source_map_.RegisterSource("pageCapture",
654 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); 654 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS);
655 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS); 655 source_map_.RegisterSource("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS);
656 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS); 656 source_map_.RegisterSource("storage", IDR_STORAGE_CUSTOM_BINDINGS_JS);
657 source_map_.RegisterSource("syncFileSystem", 657 source_map_.RegisterSource("syncFileSystem",
658 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); 658 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS);
659 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS);
659 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS); 660 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS);
660 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); 661 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS);
661 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); 662 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS);
662 source_map_.RegisterSource("types", IDR_TYPES_CUSTOM_BINDINGS_JS); 663 source_map_.RegisterSource("types", IDR_TYPES_CUSTOM_BINDINGS_JS);
663 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS); 664 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS);
664 source_map_.RegisterSource("webRequestInternal", 665 source_map_.RegisterSource("webRequestInternal",
665 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS); 666 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS);
666 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); 667 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS);
667 668
668 // Platform app sources that are not API-specific.. 669 // Platform app sources that are not API-specific..
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 // we should abort. 1111 // we should abort.
1111 WebKit::WebFrame* frame = context->web_frame(); 1112 WebKit::WebFrame* frame = context->web_frame();
1112 ExtensionURLInfo url_info(frame->document().securityOrigin(), 1113 ExtensionURLInfo url_info(frame->document().securityOrigin(),
1113 UserScriptSlave::GetDataSourceURLForFrame(frame)); 1114 UserScriptSlave::GetDataSourceURLForFrame(frame));
1114 CHECK(!extensions_.IsSandboxedPage(url_info)); 1115 CHECK(!extensions_.IsSandboxedPage(url_info));
1115 1116
1116 return true; 1117 return true;
1117 } 1118 }
1118 1119
1119 } // namespace extensions 1120 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698