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

Unified Diff: ppapi/tests/testing_instance.h

Issue 6538028: A proposal for an initial postMessage interface. This will allow JavaScript ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: ppapi/tests/testing_instance.h
===================================================================
--- ppapi/tests/testing_instance.h (revision 77426)
+++ ppapi/tests/testing_instance.h (working copy)
@@ -1,9 +1,9 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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 PPAPI_TEST_TESTING_INSTANCE_H_
-#define PPAPI_TEST_TESTING_INSTANCE_H_
+#ifndef PPAPI_TESTS_TESTING_INSTANCE_H_
+#define PPAPI_TESTS_TESTING_INSTANCE_H_
#include <string>
@@ -14,7 +14,7 @@
class TestingInstance : public pp::Instance {
public:
- TestingInstance(PP_Instance instance);
+ explicit TestingInstance(PP_Instance instance);
// pp::Instance override.
virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]);
@@ -41,6 +41,12 @@
// Appends an error message to the log.
void AppendError(const std::string& message);
+ // Passes the message_data through to the HandleMessage method on the
+ // TestClass object that's associated with this instance.
+ virtual void HandleMessage(const pp::Var& message_data);
+
+ bool nacl_mode() { return nacl_mode_; }
brettw 2011/03/16 21:34:11 This should be const.
dmichael(do not use this one) 2011/03/21 21:43:35 Nice catch. Turns out I didn't end up using it, s
+
private:
void ExecuteTests(int32_t unused);
@@ -75,4 +81,5 @@
bool nacl_mode_;
};
-#endif // PPAPI_TEST_TESTING_INSTANCE_H_
+#endif // PPAPI_TESTS_TESTING_INSTANCE_H_
+

Powered by Google App Engine
This is Rietveld 408576698