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

Unified Diff: chrome/renderer/extensions/custom_bindings_util.h

Issue 9460002: Convert app_bindings.js to the schema_generated_bindings.js infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make test extension ID tests pass Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/custom_bindings_util.h
diff --git a/chrome/renderer/extensions/custom_bindings_util.h b/chrome/renderer/extensions/custom_bindings_util.h
deleted file mode 100644
index 73d026d931f6609139e4ef835a98ce74be15a12d..0000000000000000000000000000000000000000
--- a/chrome/renderer/extensions/custom_bindings_util.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_EXTENSIONS_CUSTOM_BINDINGS_UTIL_H_
-#define CHROME_RENDERER_EXTENSIONS_CUSTOM_BINDINGS_UTIL_H_
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include "chrome/renderer/extensions/chrome_v8_extension.h"
-
-class Extension;
-class ExtensionDispatcher;
-
-namespace v8 {
-class Extension;
-}
-
-namespace extensions {
-
-// Utilities for managing the set of V8 extensions for extension API custom
-// bindings.
-namespace custom_bindings_util {
-
-// Extracts the name of an API from the name of the V8 extension which contains
-// custom bindings for it.
-// Returns an empty string if the extension is not for a custom binding.
-std::string GetAPIName(const std::string& v8_extension_name);
-
-// Returns whether the custom binding for an API should be allowed to run for
-// |extension|. This is based on whether the extension has any permission
-// (required or optional) for that API, and what context the APIs are intended
-// to run in.
-bool AllowAPIInjection(const std::string& api_name,
- const Extension& extension,
- ExtensionDispatcher* extension_dispatcher);
-
-} // namespace custom_bindings_util
-
-} // namespace extensions
-
-#endif // CHROME_RENDERER_EXTENSIONS_CUSTOM_BINDINGS_UTIL_H_
« no previous file with comments | « chrome/renderer/extensions/chrome_v8_context_set_unittest.cc ('k') | chrome/renderer/extensions/custom_bindings_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698