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

Unified Diff: experimental/c_salt/scripting_interface.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/c_salt/scripting_bridge_ptrs.h ('k') | experimental/c_salt/scripting_interface_ptrs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/c_salt/scripting_interface.h
diff --git a/experimental/c_salt/scripting_interface.h b/experimental/c_salt/scripting_interface.h
deleted file mode 100644
index d23fde3d7fbb310d023b809c2fee1e0c5f420ee7..0000000000000000000000000000000000000000
--- a/experimental/c_salt/scripting_interface.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2010 The Ginsu 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 C_SALT_SCRIPTING_INTERFACE_H_
-#define C_SALT_SCRIPTING_INTERFACE_H_
-
-#include <string>
-#include <vector>
-
-#include "c_salt/variant_ptrs.h"
-
-namespace c_salt {
-
-// ScriptingInterface represents an interface to any object shared between
-// JavaScript and native code.
-class ScriptingInterface {
- public:
- virtual ~ScriptingInterface() {}
-
- virtual bool HasScriptMethod(const std::string& name) = 0;
- virtual bool InvokeScriptMethod(const std::string& method_name,
- const SharedVariant* params_begin,
- const SharedVariant* params_end,
- SharedVariant* return_value_var) = 0;
- // Support for browser-exposed properties. The browser proxy (which is
- // platform-specific) first calls HasProperty() before getting or setting;
- // the Get or Set is performed only if HasProperty() returns |true|. The
- // brwoser proxy is responsible for all the variant marshaling.
- virtual bool HasScriptProperty(const std::string& name) = 0;
- // Set |return_value| to the value associated with property |name|. If
- // property |name| doesn't exist, then set |return_value| to the null type
- // and return |false|.
- virtual bool GetScriptProperty(const std::string& name,
- SharedVariant* return_value) const = 0;
- // If |name| is associated with a static property, return that value. Else,
- // if there is no property associated with |name|, add it as a dynamic
- // property. See property.h for definitions and more details.
- virtual bool SetScriptProperty(const std::string& name,
- const SharedVariant& value) = 0;
- // This succeeds only if |name| is associated with a dynamic property.
- virtual bool RemoveScriptProperty(const std::string& name) = 0;
-
- // Return the names of all enumerable properties in to the provided vector.
- virtual void GetAllPropertyNames(
- std::vector<std::string>* prop_names) const = 0;
-
- // Return true iff this object is implemented by a native object (as opposed
- // to a JavaScript object in the browser).
- virtual bool IsNative() const = 0;
-
- // This is called by some browser proxies when all references to a proxy
- // object have been deallocated, but the proxy's ref count has not gone to 0.
- // It's kind of an anti-leak clean-up mechanism.
- virtual void Invalidate() = 0;
-};
-
-} // namespace c_salt
-
-#endif // C_SALT_SCRIPTING_INTERFACE_H_
« no previous file with comments | « experimental/c_salt/scripting_bridge_ptrs.h ('k') | experimental/c_salt/scripting_interface_ptrs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698