summaryrefslogtreecommitdiffstats
path: root/content/public/browser/browser_plugin_guest_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/browser/browser_plugin_guest_delegate.h')
-rw-r--r--content/public/browser/browser_plugin_guest_delegate.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
new file mode 100644
index 0000000..fdcb523
--- /dev/null
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -0,0 +1,27 @@
+// Copyright 2013 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 CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
+#define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
+
+#include "base/strings/string16.h"
+
+namespace content {
+
+// Objects implement this interface to get notified about changes in the guest
+// WebContents and to provide necessary functionality.
+class BrowserPluginGuestDelegate {
+ public:
+ virtual ~BrowserPluginGuestDelegate() {}
+
+ // Add a message to the console.
+ virtual void AddMessageToConsole(int32 level,
+ const string16& message,
+ int32 line_no,
+ const string16& source_id) {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_