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

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: Fixed browser_tests build 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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 source_map_.RegisterSource("ChromeDirectSetting", 1035 source_map_.RegisterSource("ChromeDirectSetting",
1036 IDR_CHROME_DIRECT_SETTING_JS); 1036 IDR_CHROME_DIRECT_SETTING_JS);
1037 1037
1038 // Platform app sources that are not API-specific.. 1038 // Platform app sources that are not API-specific..
1039 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); 1039 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS);
1040 // Note: webView not webview so that this doesn't interfere with the 1040 // Note: webView not webview so that this doesn't interfere with the
1041 // chrome.webview API bindings. 1041 // chrome.webview API bindings.
1042 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); 1042 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS);
1043 source_map_.RegisterSource("webViewExperimental", 1043 source_map_.RegisterSource("webViewExperimental",
1044 IDR_WEB_VIEW_EXPERIMENTAL_JS); 1044 IDR_WEB_VIEW_EXPERIMENTAL_JS);
1045 source_map_.RegisterSource("webViewRequest",
1046 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS);
1045 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); 1047 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS);
1046 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); 1048 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS);
1047 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS); 1049 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS);
1048 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS); 1050 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS);
1049 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); 1051 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS);
1050 1052
1051 #if defined OS_CHROMEOS 1053 #if defined OS_CHROMEOS
1052 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS); 1054 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS);
1053 #endif 1055 #endif
1054 } 1056 }
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 RenderView* background_view = 1634 RenderView* background_view =
1633 ExtensionHelper::GetBackgroundPage(extension_id); 1635 ExtensionHelper::GetBackgroundPage(extension_id);
1634 if (background_view) { 1636 if (background_view) {
1635 background_view->Send(new ExtensionHostMsg_EventAck( 1637 background_view->Send(new ExtensionHostMsg_EventAck(
1636 background_view->GetRoutingID())); 1638 background_view->GetRoutingID()));
1637 } 1639 }
1638 } 1640 }
1639 } 1641 }
1640 1642
1641 } // namespace extensions 1643 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698