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

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

Issue 541753004: Split web_view_internal_api and move part of it to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chrome_extensions_dispatcher_delegate.h" 5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sha1.h" 8 #include "base/sha1.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 IDR_CHROME_DIRECT_SETTING_JS); 233 IDR_CHROME_DIRECT_SETTING_JS);
234 234
235 // Platform app sources that are not API-specific.. 235 // Platform app sources that are not API-specific..
236 source_map->RegisterSource("appView", IDR_APP_VIEW_JS); 236 source_map->RegisterSource("appView", IDR_APP_VIEW_JS);
237 source_map->RegisterSource("fileEntryBindingUtil", 237 source_map->RegisterSource("fileEntryBindingUtil",
238 IDR_FILE_ENTRY_BINDING_UTIL_JS); 238 IDR_FILE_ENTRY_BINDING_UTIL_JS);
239 source_map->RegisterSource("extensionOptions", IDR_EXTENSION_OPTIONS_JS); 239 source_map->RegisterSource("extensionOptions", IDR_EXTENSION_OPTIONS_JS);
240 source_map->RegisterSource("extensionOptionsEvents", 240 source_map->RegisterSource("extensionOptionsEvents",
241 IDR_EXTENSION_OPTIONS_EVENTS_JS); 241 IDR_EXTENSION_OPTIONS_EVENTS_JS);
242 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); 242 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS);
243 source_map->RegisterSource("webViewInternal", 243 source_map->RegisterSource("chromeWebViewInternal",
244 IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); 244 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS);
245 // Note: webView not webview so that this doesn't interfere with the 245 // Note: webView not webview so that this doesn't interfere with the
246 // chrome.webview API bindings. 246 // chrome.webview API bindings.
247 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS); 247 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS);
248 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS); 248 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS);
249 source_map->RegisterSource("webViewExperimental", 249 source_map->RegisterSource("webViewExperimental",
250 IDR_WEB_VIEW_EXPERIMENTAL_JS); 250 IDR_WEB_VIEW_EXPERIMENTAL_JS);
251 source_map->RegisterSource("webViewRequest", 251 source_map->RegisterSource("webViewRequest",
252 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS); 252 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS);
253 source_map->RegisterSource("denyAppView", IDR_APP_VIEW_DENY_JS); 253 source_map->RegisterSource("denyAppView", IDR_APP_VIEW_DENY_JS);
254 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); 254 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 new extensions::PermissionSet(extensions::APIPermissionSet(), 348 new extensions::PermissionSet(extensions::APIPermissionSet(),
349 extensions::ManifestPermissionSet(), 349 extensions::ManifestPermissionSet(),
350 origin_set, 350 origin_set,
351 extensions::URLPatternSet())); 351 extensions::URLPatternSet()));
352 } 352 }
353 353
354 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( 354 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage(
355 bool webrequest_used) { 355 bool webrequest_used) {
356 webrequest_used_ = webrequest_used; 356 webrequest_used_ = webrequest_used;
357 } 357 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698