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

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

Issue 28273006: <webview>: Implement declarativeWebRequest API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Istiaque's comments Created 7 years, 1 month 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
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 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 source_map_.RegisterSource("ChromeDirectSetting", 1026 source_map_.RegisterSource("ChromeDirectSetting",
1027 IDR_CHROME_DIRECT_SETTING_JS); 1027 IDR_CHROME_DIRECT_SETTING_JS);
1028 1028
1029 // Platform app sources that are not API-specific.. 1029 // Platform app sources that are not API-specific..
1030 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); 1030 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS);
1031 // Note: webView not webview so that this doesn't interfere with the 1031 // Note: webView not webview so that this doesn't interfere with the
1032 // chrome.webview API bindings. 1032 // chrome.webview API bindings.
1033 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); 1033 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS);
1034 source_map_.RegisterSource("webViewExperimental", 1034 source_map_.RegisterSource("webViewExperimental",
1035 IDR_WEB_VIEW_EXPERIMENTAL_JS); 1035 IDR_WEB_VIEW_EXPERIMENTAL_JS);
1036 source_map_.RegisterSource("webViewRequest",
1037 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS);
1036 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); 1038 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS);
1037 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); 1039 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS);
1038 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS); 1040 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS);
1039 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS); 1041 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS);
1040 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); 1042 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS);
1041 1043
1042 #if defined OS_CHROMEOS 1044 #if defined OS_CHROMEOS
1043 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS); 1045 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS);
1044 #endif 1046 #endif
1045 } 1047 }
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 RenderView* background_view = 1625 RenderView* background_view =
1624 ExtensionHelper::GetBackgroundPage(extension_id); 1626 ExtensionHelper::GetBackgroundPage(extension_id);
1625 if (background_view) { 1627 if (background_view) {
1626 background_view->Send(new ExtensionHostMsg_EventAck( 1628 background_view->Send(new ExtensionHostMsg_EventAck(
1627 background_view->GetRoutingID())); 1629 background_view->GetRoutingID()));
1628 } 1630 }
1629 } 1631 }
1630 } 1632 }
1631 1633
1632 } // namespace extensions 1634 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698