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

Unified Diff: src/trusted/plugin/browser_interface.h

Issue 7799028: Remove src/trusted/plugin (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix gyp file for necessary -I Created 9 years, 4 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 | « src/trusted/plugin/array_ppapi.cc ('k') | src/trusted/plugin/browser_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/browser_interface.h
diff --git a/src/trusted/plugin/browser_interface.h b/src/trusted/plugin/browser_interface.h
deleted file mode 100644
index 4866372e58058a05955e384c818436f6a9ef119d..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/browser_interface.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (c) 2011 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-// Interface for browser interaction
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_BROWSER_INTERFACE_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_BROWSER_INTERFACE_H_
-
-#include <stdio.h>
-#include <map>
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/nacl_string.h"
-#include "native_client/src/include/portability.h"
-#include "ppapi/cpp/instance.h"
-
-namespace pp {
-class InstancePrivate;
-} // namespace
-
-namespace plugin {
-
-// BrowserInterface represents the interface to the browser from the plugin.
-// I.e., when the plugin needs to request an alert, it uses these interfaces.
-class BrowserInterface {
- public:
- BrowserInterface() : next_identifier(0) {}
- ~BrowserInterface() { }
-
- // Functions for communication with the browser.
-
- // Convert a string to an identifier.
- uintptr_t StringToIdentifier(const nacl::string& str);
- // Convert an identifier to a string.
- nacl::string IdentifierToString(uintptr_t ident);
-
- // Write to the JavaScript console.
- void AddToConsole(pp::InstancePrivate* instance, const nacl::string& text);
-
- private:
- NACL_DISALLOW_COPY_AND_ASSIGN(BrowserInterface);
-
- // Map strings used for property and method names to unique ids and back.
- typedef std::map<nacl::string, uintptr_t> StringToIdentifierMap;
- typedef std::map<uintptr_t, nacl::string> IdentifierToStringMap;
- StringToIdentifierMap string_to_identifier_map_;
- IdentifierToStringMap identifier_to_string_map_;
- uintptr_t next_identifier; // will be incremented once used
-};
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_BROWSER_INTERFACE_H_
« no previous file with comments | « src/trusted/plugin/array_ppapi.cc ('k') | src/trusted/plugin/browser_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698