IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / browser_plugin / test_browser_plugin_guest_delegate.cc
blob59ae63555d9799952204a15b277e0a1f2e896224
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"
7 namespace content {
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(
22 int32 level,
23 const base::string16& message,
24 int32 line_no,
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,
41 const GURL& url,
42 const std::string& error_type) {
43 load_aborted_ = true;
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,
59 request_info,
60 callback,
61 allowed_by_default);
64 void TestBrowserPluginGuestDelegate::SizeChanged(const gfx::Size& old_size,
65 const gfx::Size& new_size) {
68 } // namespace content