1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/browser_plugin/test_browser_plugin_guest_delegate.h"
9 TestBrowserPluginGuestDelegate::TestBrowserPluginGuestDelegate()
10 : load_aborted_(false) {
13 TestBrowserPluginGuestDelegate::~TestBrowserPluginGuestDelegate() {
16 void TestBrowserPluginGuestDelegate::ResetStates() {
17 load_aborted_
= false;
18 load_aborted_url_
= GURL();
21 void TestBrowserPluginGuestDelegate::AddMessageToConsole(
23 const base::string16
& message
,
25 const base::string16
& source_id
) {
28 void TestBrowserPluginGuestDelegate::Close() {
31 void TestBrowserPluginGuestDelegate::GuestProcessGone(
32 base::TerminationStatus status
) {
35 bool TestBrowserPluginGuestDelegate::HandleKeyboardEvent(
36 const NativeWebKeyboardEvent
& event
) {
37 return BrowserPluginGuestDelegate::HandleKeyboardEvent(event
);
40 void TestBrowserPluginGuestDelegate::LoadAbort(bool is_top_level
,
42 const std::string
& error_type
) {
44 load_aborted_url_
= url
;
47 void TestBrowserPluginGuestDelegate::RendererResponsive() {
50 void TestBrowserPluginGuestDelegate::RendererUnresponsive() {
53 bool TestBrowserPluginGuestDelegate::RequestPermission(
54 BrowserPluginPermissionType permission_type
,
55 const base::DictionaryValue
& request_info
,
56 const PermissionResponseCallback
& callback
,
57 bool allowed_by_default
) {
58 return BrowserPluginGuestDelegate::RequestPermission(permission_type
,
64 void TestBrowserPluginGuestDelegate::SizeChanged(const gfx::Size
& old_size
,
65 const gfx::Size
& new_size
) {
68 } // namespace content