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

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: nits 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 IDR_CHROME_DIRECT_SETTING_JS); 226 IDR_CHROME_DIRECT_SETTING_JS);
227 227
228 // Platform app sources that are not API-specific.. 228 // Platform app sources that are not API-specific..
229 source_map->RegisterSource("appView", IDR_APP_VIEW_JS); 229 source_map->RegisterSource("appView", IDR_APP_VIEW_JS);
230 source_map->RegisterSource("fileEntryBindingUtil", 230 source_map->RegisterSource("fileEntryBindingUtil",
231 IDR_FILE_ENTRY_BINDING_UTIL_JS); 231 IDR_FILE_ENTRY_BINDING_UTIL_JS);
232 source_map->RegisterSource("extensionOptions", IDR_EXTENSION_OPTIONS_JS); 232 source_map->RegisterSource("extensionOptions", IDR_EXTENSION_OPTIONS_JS);
233 source_map->RegisterSource("extensionOptionsEvents", 233 source_map->RegisterSource("extensionOptionsEvents",
234 IDR_EXTENSION_OPTIONS_EVENTS_JS); 234 IDR_EXTENSION_OPTIONS_EVENTS_JS);
235 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); 235 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS);
236 source_map->RegisterSource("webViewInternal", 236 source_map->RegisterSource("chromeWebViewInternal",
237 IDR_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); 237 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS);
238 // Note: webView not webview so that this doesn't interfere with the 238 // Note: webView not webview so that this doesn't interfere with the
239 // chrome.webview API bindings. 239 // chrome.webview API bindings.
240 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS); 240 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS);
241 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS); 241 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS);
242 source_map->RegisterSource("webViewExperimental", 242 source_map->RegisterSource("webViewExperimental",
243 IDR_WEB_VIEW_EXPERIMENTAL_JS); 243 IDR_WEB_VIEW_EXPERIMENTAL_JS);
244 source_map->RegisterSource("webViewRequest", 244 source_map->RegisterSource("webViewRequest",
245 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS); 245 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS);
246 source_map->RegisterSource("denyAppView", IDR_APP_VIEW_DENY_JS); 246 source_map->RegisterSource("denyAppView", IDR_APP_VIEW_DENY_JS);
247 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); 247 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 new extensions::PermissionSet(extensions::APIPermissionSet(), 341 new extensions::PermissionSet(extensions::APIPermissionSet(),
342 extensions::ManifestPermissionSet(), 342 extensions::ManifestPermissionSet(),
343 origin_set, 343 origin_set,
344 extensions::URLPatternSet())); 344 extensions::URLPatternSet()));
345 } 345 }
346 346
347 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( 347 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage(
348 bool webrequest_used) { 348 bool webrequest_used) {
349 webrequest_used_ = webrequest_used; 349 webrequest_used_ = webrequest_used;
350 } 350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698