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

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

Issue 83043005: Cast Extensions API: Factory method for creating a cast session (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 7 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) 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/debug/alias.h" 9 #include "base/debug/alias.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 source_map_.RegisterSource("systemIndicator", 1010 source_map_.RegisterSource("systemIndicator",
1011 IDR_SYSTEM_INDICATOR_CUSTOM_BINDINGS_JS); 1011 IDR_SYSTEM_INDICATOR_CUSTOM_BINDINGS_JS);
1012 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS); 1012 source_map_.RegisterSource("tabCapture", IDR_TAB_CAPTURE_CUSTOM_BINDINGS_JS);
1013 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS); 1013 source_map_.RegisterSource("tabs", IDR_TABS_CUSTOM_BINDINGS_JS);
1014 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS); 1014 source_map_.RegisterSource("tts", IDR_TTS_CUSTOM_BINDINGS_JS);
1015 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS); 1015 source_map_.RegisterSource("ttsEngine", IDR_TTS_ENGINE_CUSTOM_BINDINGS_JS);
1016 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS); 1016 source_map_.RegisterSource("webRequest", IDR_WEB_REQUEST_CUSTOM_BINDINGS_JS);
1017 source_map_.RegisterSource("webRequestInternal", 1017 source_map_.RegisterSource("webRequestInternal",
1018 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS); 1018 IDR_WEB_REQUEST_INTERNAL_CUSTOM_BINDINGS_JS);
1019 #if defined(ENABLE_WEBRTC) 1019 #if defined(ENABLE_WEBRTC)
1020 source_map_.RegisterSource("cast.streaming.session",
1021 IDR_CAST_STREAMING_SESSION_CUSTOM_BINDINGS_JS);
1020 source_map_.RegisterSource("webrtc.castSendTransport", 1022 source_map_.RegisterSource("webrtc.castSendTransport",
1021 IDR_WEBRTC_CAST_SEND_TRANSPORT_CUSTOM_BINDINGS_JS); 1023 IDR_WEBRTC_CAST_SEND_TRANSPORT_CUSTOM_BINDINGS_JS);
1022 source_map_.RegisterSource("webrtc.castUdpTransport", 1024 source_map_.RegisterSource("webrtc.castUdpTransport",
1023 IDR_WEBRTC_CAST_UDP_TRANSPORT_CUSTOM_BINDINGS_JS); 1025 IDR_WEBRTC_CAST_UDP_TRANSPORT_CUSTOM_BINDINGS_JS);
1024 #endif 1026 #endif
1025 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); 1027 source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS);
1026 source_map_.RegisterSource("windowControls", IDR_WINDOW_CONTROLS_JS); 1028 source_map_.RegisterSource("windowControls", IDR_WINDOW_CONTROLS_JS);
1027 source_map_.RegisterSource("binding", IDR_BINDING_JS); 1029 source_map_.RegisterSource("binding", IDR_BINDING_JS);
1028 1030
1029 // Custom types sources. 1031 // Custom types sources.
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 RenderView* background_view = 1637 RenderView* background_view =
1636 ExtensionHelper::GetBackgroundPage(extension_id); 1638 ExtensionHelper::GetBackgroundPage(extension_id);
1637 if (background_view) { 1639 if (background_view) {
1638 background_view->Send(new ExtensionHostMsg_EventAck( 1640 background_view->Send(new ExtensionHostMsg_EventAck(
1639 background_view->GetRoutingID())); 1641 background_view->GetRoutingID()));
1640 } 1642 }
1641 } 1643 }
1642 } 1644 }
1643 1645
1644 } // namespace extensions 1646 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698