ContextMenuClientImpl.h revision 8f72e70a9fd78eec56623b3a62e68f16b7b27e28
16ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein/* 26ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * Copyright (C) 2009 Google Inc. All rights reserved. 36ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * 46ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * Redistribution and use in source and binary forms, with or without 56ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * modification, are permitted provided that the following conditions are 66ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * met: 76ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * 86ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * * Redistributions of source code must retain the above copyright 96ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * notice, this list of conditions and the following disclaimer. 106ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * * Redistributions in binary form must reproduce the above 116ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * copyright notice, this list of conditions and the following disclaimer 126ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * in the documentation and/or other materials provided with the 136ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * distribution. 146ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * * Neither the name of Google Inc. nor the names of its 156ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * contributors may be used to endorse or promote products derived from 166ba612efffba42bec102ac58a1540496158f747eAndrew Sapperstein * this software without specific prior written permission. 17d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * 18d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein */ 30d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 31d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein#ifndef ScriptObjectQuarantine_h 32d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein#define ScriptObjectQuarantine_h 33d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 34d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein#include "ScriptState.h" 35d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 36d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sappersteinnamespace WebCore { 37d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 38d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein class Database; 39d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein class Frame; 40d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein class ScriptObject; 41d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein class ScriptValue; 42d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein class Storage; 43d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 44d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein ScriptValue quarantineValue(ScriptState*, const ScriptValue&); 45d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 46d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein bool getQuarantinedScriptObject(Database* database, ScriptObject& quarantinedObject); 47d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein bool getQuarantinedScriptObject(Frame* frame, Storage* storage, ScriptObject& quarantinedObject); 48d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 49d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein} 50d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein 51d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein#endif // ScriptObjectQuarantine_h 52d6eaacbb9eb56763d38a3815fc509b92ed98a585Andrew Sapperstein