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

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

Issue 595033002: Move declarative_webrequest_custom_bindings.js. and declarative_web_request.json. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 "extensions/renderer/dispatcher.h" 5 #include "extensions/renderer/dispatcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/alias.h" 10 #include "base/debug/alias.h"
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 std::make_pair(mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS)); 554 std::make_pair(mojo::kUnicodeModuleName, IDR_MOJO_UNICODE_JS));
555 resources.push_back( 555 resources.push_back(
556 std::make_pair(mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS)); 556 std::make_pair(mojo::kValidatorModuleName, IDR_MOJO_VALIDATOR_JS));
557 557
558 // Custom bindings. 558 // Custom bindings.
559 resources.push_back( 559 resources.push_back(
560 std::make_pair("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS)); 560 std::make_pair("app.runtime", IDR_APP_RUNTIME_CUSTOM_BINDINGS_JS));
561 resources.push_back( 561 resources.push_back(
562 std::make_pair("app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS)); 562 std::make_pair("app.window", IDR_APP_WINDOW_CUSTOM_BINDINGS_JS));
563 resources.push_back( 563 resources.push_back(
564 std::make_pair("declarativeWebRequest",
565 IDR_DECLARATIVE_WEBREQUEST_CUSTOM_BINDINGS_JS));
566 resources.push_back(
564 std::make_pair("contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS)); 567 std::make_pair("contextMenus", IDR_CONTEXT_MENUS_CUSTOM_BINDINGS_JS));
565 resources.push_back( 568 resources.push_back(
566 std::make_pair("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS)); 569 std::make_pair("extension", IDR_EXTENSION_CUSTOM_BINDINGS_JS));
567 resources.push_back(std::make_pair("i18n", IDR_I18N_CUSTOM_BINDINGS_JS)); 570 resources.push_back(std::make_pair("i18n", IDR_I18N_CUSTOM_BINDINGS_JS));
568 resources.push_back( 571 resources.push_back(
569 std::make_pair("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS)); 572 std::make_pair("permissions", IDR_PERMISSIONS_CUSTOM_BINDINGS_JS));
570 resources.push_back( 573 resources.push_back(
571 std::make_pair("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS)); 574 std::make_pair("runtime", IDR_RUNTIME_CUSTOM_BINDINGS_JS));
572 resources.push_back(std::make_pair("windowControls", IDR_WINDOW_CONTROLS_JS)); 575 resources.push_back(std::make_pair("windowControls", IDR_WINDOW_CONTROLS_JS));
573 resources.push_back(std::make_pair("binding", IDR_BINDING_JS)); 576 resources.push_back(std::make_pair("binding", IDR_BINDING_JS));
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 return v8::Handle<v8::Object>(); 1367 return v8::Handle<v8::Object>();
1365 1368
1366 if (bind_name) 1369 if (bind_name)
1367 *bind_name = split.back(); 1370 *bind_name = split.back();
1368 1371
1369 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context)) 1372 return bind_object.IsEmpty() ? AsObjectOrEmpty(GetOrCreateChrome(context))
1370 : bind_object; 1373 : bind_object;
1371 } 1374 }
1372 1375
1373 } // namespace extensions 1376 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/resources/declarative_webrequest_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698